Fix Wordpress default .htaccess and 401 error
I encourted a problem that I couldn't see the dialog for my password protected pages. The problem was caused by Wordpress default .htaccess file which redirect 401 page to 404 page. The more detail can be found here (http://www.andrewrollins.com/2008/01/22/wordpress-and-htaccess-password-protected-directories/)
I've tried three methods the article said and only found the last one is OK. I created a 401 page and put this line into .htaccess and every went well.
ErrorDocument 401 /401.shtml
I didn't know the reason for the failure of another two failed because my new hosting server is LiteSpee which may not fully compatible with Apache.
作者:april1985
原文链接:http://www.april1985.com/2009/05/21/fix-wordpress-default-htaccess-and-401-error/
《-= April 1985 =-》版权所有,转载时必须以链接形式注明作者和原始出处及本声明。
你可能也想看看:
No comments yet.