Zen Cart Logo
Forums / General Questions / Trying to password protect my site using .htaccess

Trying to password protect my site using .htaccess

Views: 887

Results 1 to 3 of 3
7 Sep 2011, 5:43 PM
#1
nirvana10 avatar

nirvana10

New Zenner

Join Date:
Aug 2010
Posts:
9
Plugin Contributions:
0

Trying to password protect my site using .htaccess

I am not quite finished with my site and I want to password protect it so that no one sees any unfinished work. I am using Godaddy linux hosting and I could not figure how to password protect the whole site through some interface, so I decided to try password protecting it with .htaccess.
I uploaded a .htaccess file that included the following to my root folder:
AuthUserFile /absolutehostingpath/.htpasswd
AuthGroupFile /dev/null
AuthName "EnterPassword"
AuthType Basic

require valid-user

(with absolutehostingpath being my real absolute hosting path)

I then uploaded a .htpasswd file (with an encrypted password) to the root folder that looked something like this:
jim:heidHeAldkwIk

I keep getting a 500 Internal Server Error.
Just so you know I did upload the files using ASCII mode.

I don't have a clue what I'm doing wrong because I'm not much of a coder. Any help you can give me is very much appreciated.

7 Sep 2011, 7:36 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,290
Plugin Contributions:
39

Re: Trying to password protect my site using .htaccess

Just put it in maintenance mode under your Zen cart configuration menu.

~Melanie

8 Sep 2011, 12:07 AM
#3
andrewnguyen avatar

andrewnguyen

New Zenner

Join Date:
Mar 2011
Location:
VIC, AU
Posts:
64
Plugin Contributions:
2

Re: Trying to password protect my site using .htaccess

Hi nirvana10, maybe you can try password protection your site or the folder via Cpanel. Its works well for me. Good luck.