Tag: wordpress
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.
How-To: Password Protect Your Entire WordPress Blog
by Omni on May.20, 2009, under How-To Guides
If you have always wanted to have a blog, but have been frightened that somebody who shouldn’t read it may read it, have no fear. There are always ways to protect your content. Sure, you can always use the .htaccess file to password protect the entire blog directory, but that looks ugly. You can also password protect individual posts, but then you have to do that for each one, and also your titles are not hidden. The most effective way to protect your blog would be to just allow access to only registered users, and then disable user registration (so that you have sole control of who reads your blog). You can do this without even installing a plugin, but by simply making a small tweak of one of your theme files. Keep reading for the guide.