After protecting directory from Cpanel >> Security >> Password Protect Directories
password protected Directory were showing 404 page not found error page by Drupal. Drupal sometimes goes crazy and produces weird problems.
Resolution :
Add the following code in .htaccess file which located under protected directory.
Quote:
[root@sever~]# cat .htaccess
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/user/public_html/cgi-bin/testdir/.htpasswd
AuthGroupFile /dev/null
require valid-user
ErrorDocument 401 401.html
|
Restarted the httpd service it required.
Problem should be solved now.
Done...