Directory protection problem

nervino

Verified User
Joined
Apr 29, 2008
Messages
7
I protected the directory "stats" of my site but the server ask me for password even if I try to visit the other public directories.
How can I fix it?

Thanks
 
Are you sure you only protected the stats folder?

When adding protection it will be the parent directory and any child directorys under it.

Check your folders and look for a .htaccess file.
 
The .htaccess file under root dir has a redirect: Redirect 301 /stat http://xxx.xxx.xxx.xxx:2222/CMD_USER_STATS?domain=xxxx.it

The .htaccess under stats dir:
AuthGroupFile /dev/null AuthName "Area statistiche" AuthType Basic AuthUserFile /home/xxxx/domains/xxxx.it/.htpasswd/public_html/stats/.htpasswd require valid-user

When I try to browse a page in the root dir, I am asked for authentication.
I am also thinking that all the pages include a file from stats directory (<noscript><img src="http://www.xxx.it/stats/php-stats.php" border="0" alt=""></noscript>). This may be the cause of the issue?

Thank you for your reply!
 
Back
Top