You may run into a situation where you have WordPress installed in the root of your domain and you want to protect a folder using the htpasswd method in aMember and it doesn’t work. When you try to access the protected folder you just see the WordPress 404 page. This video shows you a solution for that problem.
After you create the .htaccess file in the folder you want to protect using aMember, edit that file and add this line at the very top before everything else:
ErrorDocument 401 /401.html
Making sure that you actually also put a file called 401.html on your server at the location you specify at the end of that line. In this case it would be in the root but you could put it in the folder you’re protecting as well. When you create the 401.html file make sure you put a nice informative message in it such as “Login required. If you do not have an account, please sign up to get one and then try again. Thank you!”





Hey Ken,
Not sure if this is the right place to ask but … on the amember forum you mentioned setup of incremental content as … create a folder and add index.php to redirect wordpress post. What is in the index.php? I get redirect loop errors with what I’ve tried.
thx,
mg
Here is what I’d put in the index.php: