Renlok Posted April 23, 2010 Share Posted April 23, 2010 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? an example or the url that will throw it is http://yoursite.com/install/install.php?step=2&URL=http://yoursite.com/&[email protected]&cats=1&n=1 I could really do with some help :-\ Quote Link to comment https://forums.phpfreaks.com/topic/199511-problem-with-htaccess-and-403-errors/ Share on other sites More sharing options...
codex-m Posted May 10, 2010 Share Posted May 10, 2010 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? an example or the url that will throw it is http://yoursite.com/install/install.php?step=2&URL=http://yoursite.com/&[email protected]&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. Quote Link to comment https://forums.phpfreaks.com/topic/199511-problem-with-htaccess-and-403-errors/#findComment-1055774 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.