Tag: htaccess
How-To: Password Protect a Subdirectory with htaccess with WordPress Installed
by Omni on Jan.28, 2010, under How-To Guides
If you have ever used WordPress on any of your websites, you may have noticed that it likes to take over everything that’s in its subdirectories and redirect any error 404’s (file not found) to its own custom error page. This is a very big problem when you try to password protect a directory using an .htaccess file (or through cPanel). WordPress will grab that page and redirect it to “file not found”, since it asks you to log in (but WP doesn’t like that). Thankfully, there are two solutions that may work for you. Keep reading to see them.