Forums / Install & configuration / 403 Forbidden Error - .htaccess

403 Forbidden Error - .htaccess

Author Message

Manu Walt

Thursday 20 March 2008 8:57:35 am

hi all,

if found this problem about ten times in the forum. So many users have this problem but nobody has an answer.

i activate the default .htaccess and now it isn't possible to access to www.examplesite.com/.

when index.php is added, then it works.

I followed the hint in the htaccess:

# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-3.6.0" with base name of the directory
# where your eZ Publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-3.6.0" is "ezpublish-3.6.0".

#<Files "ezpublish-3.6.0">
#   order allow,deny
#   allow from all
#</Files>

but it still don't work.

is there a solution for this problem?

thanks to all!

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

eZ debug

Timing: Jan 18 2025 18:42:53
Script start
Timing: Jan 18 2025 18:42:53
Module start 'content'
Timing: Jan 18 2025 18:42:54
Module end 'content'
Timing: Jan 18 2025 18:42:54
Script end

Main resources:

Total runtime0.8022 sec
Peak memory usage4,096.0000 KB
Database Queries201

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.8281180.8281
Module start 'content' 0.00690.6452 768.6563581.0781
Module end 'content' 0.65200.1501 1,349.7344334.1094
Script end 0.8021  1,683.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5229210.0002
Check MTime0.00150.1828210.0001
Mysql Total
Database connection0.00140.179610.0014
Mysqli_queries0.724990.36872010.0036
Looping result0.00210.26621990.0000
Template Total0.773496.420.3867
Template load0.00210.267520.0011
Template processing0.771396.145720.3856
Template load and register function0.00030.032510.0003
states
state_id_array0.00090.114410.0009
state_identifier_array0.00090.108320.0004
Override
Cache load0.00180.2270290.0001
Sytem overhead
Fetch class attribute can translate value0.00190.232750.0004
Fetch class attribute name0.00120.147640.0003
XML
Image XML parsing0.00070.090450.0001
class_abstraction
Instantiating content class attribute0.00000.002640.0000
General
dbfile0.00210.2677210.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs