Jump to content

Problem with htaccess and 403 errors


Renlok

Recommended Posts

I've made a script and the .htacces file has the contents

# secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

# disable directory browsing
Options All -Indexes

# disable access to logs/template files
<Files ~ "\.(log|tpl)$">
order allow,deny
deny from all
</files>

 

but on some servers the Options All -Indexes line will cause a 403 error to be thrown when using the install script and ive no idea why?  :shrug:

 

an example or the url that will throw it is http://yoursite.com/install/install.php?step=2&URL=http://yoursite.com/&EMail=sales@yoursite.com&cats=1&n=1

 

I could really do with some help  :-\

Link to comment
Share on other sites

  • 3 weeks later...

I've made a script and the .htacces file has the contents

# secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

# disable directory browsing
Options All -Indexes

# disable access to logs/template files
<Files ~ "\.(log|tpl)$">
order allow,deny
deny from all
</files>

 

but on some servers the Options All -Indexes line will cause a 403 error to be thrown when using the install script and ive no idea why?  :shrug:

 

an example or the url that will throw it is http://yoursite.com/install/install.php?step=2&URL=http://yoursite.com/&EMail=sales@yoursite.com&cats=1&n=1

 

I could really do with some help  :-\

 

I experience working with some apache web hosters that if the file permission is not set to 755, it will return 500 internal error or 403 forbidden. Try setting all files in your server to 755 or much better consult with your web host if they have particular requirements when it comes to file permission.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.