Share » Forums » Install & configuration » ezDFSFileHandler



Friday 13 May 2011 6:19:07 am - 5 replies

Author Message

Ivo Lukac

Friday 13 May 2011 6:35:17 am

I think the docs are ok, just missing a note about different syntax for rewrite rules:

- when in virtual host you need to match:


- when you are in .htaccess you need to match


That one slash can be a big cause for headaches :)

Andreas Dobrick

Sunday 15 May 2011 11:57:05 pm

Thanks for you replay Ivo. I'm using .htaccess and the rule works fine so far.

I need that rule to get my configuration working. That these rewrite rule isn't within documentation get's me messy and points out the question:

Do I need these rule in reason to wrong config or is the documentation just missing the rule?

Ivo Lukac

Monday 16 May 2011 2:08:20 am

Again about the slashes, did you try doc rewrite rules without slashes?:

RewriteRule  ^var/([^/]+/)?storage/images-versioned/.*  /index_cluster.php [L]
RewriteRule  ^var/([^/]+/)?storage/images/.*  /index_cluster.php [L]
RewriteRule  ^var/([^/]+/)?cache/public/(stylesheets|javascript)  /index_cluster.php  [L]

Andreas Dobrick

Monday 16 May 2011 2:44:39 am

Thank you for your quick answer, Evo.Yes, I used documentation rewrite rules wihtout the leading slashes:

RewriteRule ^var/([^/]+/)?storage/images-versioned/.* /index_cluster.php [L]
RewriteRule ^var/([^/]+/)?storage/images/.* /index_cluster.php [L]
RewriteRule ^var/([^/]+/)?cache/public/(stylesheets|javascript)/.* /index_cluster.php [L]
RewriteRule ^index_cluster.php - [L]

Without the "RewriteRule ^index_cluster.php - [L]" - Line the index_cluster.php didn't work.

A request for a stylesheet goes to our rewrite rules and hit the rule which rewrite to index_custer.php. The following request for index_cluster.php seems to have a rewrite, too.


index_cluster.php goes to index.php and in reason to that I didn't get my style.

With my added index_cluster.php rule I stop rewriting from index_cluster.php to index.php - I will get my style.

Ivo Lukac

Monday 16 May 2011 2:47:45 am

I would say that the docs are missing one rewrite rule :)

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu