The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to use use password to protect whole website?

Discussion in 'General Discussion' started by ljwhite, Apr 25, 2006.

  1. ljwhite

    ljwhite Well-Known Member

    Joined:
    Jun 20, 2005
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    I want to use password to protect my whole website: mydomain.com. I went to "Password Protect Directories". But it seems that this feature just can protect the spefic folder. Is there a way to use password to protect my whole website? Many thanks in advance!
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    You could simply create a directory and then password protect it.

    Then take the .htaccess file in the password protected directory and either:

    1) Copy it to your document root if there is no other .htaccess file present
    2) Copy the contents of the .htaccess file into the .htaccess file in your document root if it is present
     
  3. ljwhite

    ljwhite Well-Known Member

    Joined:
    Jun 20, 2005
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for your help.
     
Loading...

Share This Page