+ Reply to Thread
+ Post New Thread
Results 1 to 2 of 2

Thread: Cpanel .htaccess password protect directory 404 Error

  1. Thumbs up Cpanel .htaccess password protect directory 404 Error

    I password protect a directory folder on my domain directory. I try to access the folder protected folder mysite.com/myfolder it came up with 404 error. The folder will be accessible when i remove .htaccess password protect. But if i put .htaccess with password protection in the same folder like:

    Code:
    AuthUserFile /home/mywebsite/.htpasssomemyfolder
    AuthType Basic
    AuthName "Authentication Required"
    Require valid-user


    instead of asking me for password when I try to access myurl.com/myfolder I get 404


    Similar Threads:

  2. # ADS
    AD Google Ad
     
  3. Thumbs up Re: Cpanel .htaccess password protect directory 404 Error

    To fix .htaccess password protected 404 error directory add ErrorDocument 401 default to your root .htaccess file.


    Code:
    ErrorDocument 401 "Authorisation Required"



+ Reply to Thread
+ Post New Thread

Quick Reply Quick Reply

If you are already a member, please login above.

Type the word TECH NO LO GY below without space

Visitors found this page by searching for:

Tags for this Thread