Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2010
    Posts
    9
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Trying to password protect my site using .htaccess

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

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Mar 2011
    Location
    VIC, AU
    Posts
    57
    Plugin Contributions
    6

    Default 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.

 

 

Similar Threads

  1. Password protect portion of site
    By JonnyLarson in forum General Questions
    Replies: 1
    Last Post: 13 Jul 2010, 03:39 PM
  2. Using .htaccess files to protect against unwanted snooping
    By lieven23 in forum General Questions
    Replies: 7
    Last Post: 6 Mar 2010, 06:56 PM
  3. password protect a site
    By chuender in forum General Questions
    Replies: 5
    Last Post: 9 Feb 2009, 08:15 PM
  4. how to password protect entire site?
    By kai920 in forum General Questions
    Replies: 3
    Last Post: 17 May 2007, 03:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg