Password Protected Directories and Wordpress
by Dan
So 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:
- Wordpress Theme Highly Customizable Well in helping my sister with her new website...
- Monitor Your Website Directory Well it seems that I have had a hell...
- Change Default Uploader in Wordpress For some reason some of my sites always freeze...
- Wordpress Themes WPDaddy I just came across another site with some fancy...
Related posts brought to you by Yet Another Related Posts Plugin.