403 Forbidden Error - .htaccess

403 Forbidden Error - .htaccess

Thursday 20 March 2008 8:57:35 am - 3 replies

Modified on Thursday 20 March 2008 8:58:12 am by Manu Walt

Author Message

Michal Slocinski

Sunday 23 March 2008 3:46:25 am

Assuming you're using Apache - do you have index.php added to your DirectoryIndex directive in your httpd.conf?

cfan seaveal

Tuesday 11 November 2008 1:32:12 pm

Hi Manu,

I'm currently experiencing the same problem of 403 error, did you you finally get the answer?

If yes, would you share the solution.

Tanks

Cyrille

Christian Rößler

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

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.