Wednesday 12 November 2008 12:30:55 am
Manu, i found the default ezPublish's htaccess very uncommon and changed it to fit my needs - and the needs of my customers. Here is my htaccess:
RewriteEngine On
# treemenu
#RewriteRule content/treemenu/? /index_treemenu.php [L]
# any downloadable files (their extension), otherwise index.php
RewriteRule !\.(gif|jpe?g|png|css|js|html?|mov|ivr|jar|swf|xml|ico|cur)|var(.+)storage(.+)\.pdf|robots\.txt$ index.php [L]
DirectoryIndex index.php
The Most important part is the long line with those file-extensions. It says: Everything that does not ends with jpg,gif,robots.txt,... goes to index.php. Otherwise serve it directly to the client.
Also please take into account, that the long line is indeed ONE line, so pdf and robots.txt should be appended to it that it reads one line until index.php [L]. Please check that. The reason for the Error 403 seems to be a false statement in your htaccess, disabled / tunred off mod_rewrite in the apache webserver and/or a small misconfiguration of apache in all. Chris.
Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613
|