Password Protected Directories and Wordpress

by Dan

43px-passwordsvgSo I moved my Wordpress install to the root folder of my website, which was a huge pain (basically I created a new install and then imported and dragged everything over).  But everything is up and working now but the only issue I had was for my Forum.  Since my forum sits in a password protected directory (thanks webcrawlers trying to register!) it was causing a 404 error when I tried to go to the folder.  It seems that it does’t handle a 401 authentication correctly and incorrectly throws a 404 error after the redirect.  All you need to do is add one line to the .htaccess file in Wordpress’s main directory.  Below is the line you need to add:

ErrorDocument 401 "Unauthorized access"

It’s that simple and that will make the directory function as desired

Related posts:

  1. Monitor Your Website Directory Well it seems that I have had a hell...
  2. Change Default Uploader in Wordpress For some reason some of my sites always freeze...

Related posts brought to you by Yet Another Related Posts Plugin.

Comments are closed.