Page 1 of 1

401 goes to 403

Posted: 03 May 2012, 19:20
by martin123456
pages 403 and 404 works perfect but 401 is giving me a 403 error i have the protected directory so im gonna say its in the .htaccess file in root.

forum path is correct so can you see why 401 is giving me a 403 ?

htaccess

Code: Select all

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#Disable Directory Browsing
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
Options -Indexes
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
ErrorDocument 400 /error.php?mode=400
ErrorDocument 401 /error.php?mode=401
ErrorDocument 403 /error.php?mode=403
ErrorDocument 404 /error.php?mode=404
ErrorDocument 500 /error.php?mode=500
RewriteCond %{HTTP_REFERER} !^http://blades-place.co.uk/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://blades-place.co.uk$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blades-place.co.uk/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.blades-place.co.uk$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

401 goes to 403

Posted: 03 May 2012, 22:15
by Stoker
How is it protected?

401 goes to 403

Posted: 03 May 2012, 22:37
by martin123456
password protected within cpanel

401 goes to 403

Posted: 03 May 2012, 22:44
by Stoker
And you can login to the folder?

401 goes to 403

Posted: 03 May 2012, 22:46
by martin123456
Nope i get a 403 when i try

401 goes to 403

Posted: 03 May 2012, 23:19
by Stoker
Im not sure why, but it must be a server setting for folders.