Hi,
I came through a issue today that Word Press is installed under root directory of the domain and want to Password Protect some sub-directory.
The default .htaccess of Word Press is making impossible to "
Password Protect Directories" and gives "
404 Page Not Found" error message.
To overcome the issue, you just need to add following code into the .htaccess file of sub-directory which you want to Password Protect.
Quote:
|
ErrorDocument 401 /Sub-Directory/error-401.html
|