Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Cannot access admin area after .htaccess directory - gives me page not found

Cannot access admin area after .htaccess directory - gives me page not found

Locked

Views: 3,172

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
11 Dec 2006, 6:30 PM
#1
immersive avatar

immersive

New Zenner

Join Date:
Oct 2006
Location:
Alaska
Posts:
48
Plugin Contributions:
0

Cannot access admin area after .htaccess directory - gives me page not found

I read the security recommendations and saw I should .htaccess password protect the /admin directory. I tried doing this with the protect directory option on my host (Site5) but when I try to access the /admin it give me the standard 404 page not found. Anyone have any ideas on this? Thank you!

Heres what my .htaccess looks like:
AuthType Basic

AuthName "Admin Area"

AuthUserFile "/home/sitename/.htpasswds/admin/passwd"

require valid-user

13 Dec 2006, 12:18 AM
#2
immersive avatar

immersive

New Zenner

Join Date:
Oct 2006
Location:
Alaska
Posts:
48
Plugin Contributions:
0

Re: Cannot access admin area after .htaccess directory - gives me page not found

Anyone have any ideas?

13 Dec 2006, 4:20 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Cannot access admin area after .htaccess directory - gives me page not found

If you used a feature from your host's control panel in order to protect the folder, perhaps you should be asking your host for specific assistance.

At a cursory glance, the content you posted appears to not contain any obvious syntactical errors. But that doesn't vouch for its suitability for your particular server configuration.

Renaming your /admin folder is far more likely to provide you security benefits faster than using the .htaccess to protect things.

30 Oct 2008, 9:51 PM
#4
corrado444 avatar

corrado444

New Zenner

Join Date:
Aug 2006
Posts:
20
Plugin Contributions:
0

Re: Cannot access admin area after .htaccess directory - gives me page not found

I am having the exact same issue on a different host (hostgator). renaming the admin directory is a good idea though and I'll try that. Are you using the SEF url add-on for Zen cart? I'd like to know so that if you don't I won't waste time trying to fix it.

Thanks

6 Jun 2011, 6:50 PM
#5
pcaines avatar

pcaines

New Zenner

Join Date:
Oct 2010
Posts:
5
Plugin Contributions:
0

Re: Cannot access admin area after .htaccess directory - gives me page not found

After hours of searching i found this simple solution

add this to the very beginning of you .htaccess file:

ErrorDocument 401 "Unauthorized"


computer repairs and web design chorlton, manchester