Friday 13 May 2011 3:19:07 pm - 5 replies
Hallo Comunity.
I used the ezDFSFileHandler Doc. I didn't get it to work like it should.
After some research I get to the point that the documentation (http://doc.ez.no/eZ-Publish/Techn...tting-it-up-for-an-eZDFSFileHandler) is missing a rewrite rule.
RewriteRule ^index_cluster.php - [L]
With this rule this handler works fine. This points me to the question: Is documentation wrong or my configuration?
Thanks in advance for you help.
Andreas Dobrick
Friday 13 May 2011 3:35:17 pm
I think the docs are ok, just missing a note about different syntax for rewrite rules:
- when in virtual host you need to match:
^/index_cluster.php
- when you are in .htaccess you need to match
^index_cluster.php
That one slash can be a big cause for headaches ![]()
Monday 16 May 2011 8:57:05 am
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?
Monday 16 May 2011 11: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]
Modified on Monday 16 May 2011 4:43:58 pm by Ivo Lukač
Monday 16 May 2011 11: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.
BOOM.
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.
Modified on Monday 16 May 2011 11:45:12 am by Andreas Dobrick
You must be logged in to post messages in this topic!