Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: 404 error on password protected directories after 4.01 upgrade
As a side effect of debugging a rather unrelated phenomenon I got into trying to add an ErrorDocument (401, 403) /somefile.html directive to my .htaccess. Problem solved!
Three easy steps to happiness with password protected directories:
- Create a document on your server: Any name, any content, plain
<html></html>suffices. Let’s call this fileonerror.htmlfor the moment. - Add these lines:
ErrorDocument 401 /[path_to_file]/onerror.html
ErrorDocument 403 /[path_to_file]/onerror.html
to the.htaccessfound in the root of your Textpattern installation. - There is no step 3.
Caveat: It still fails if you do not specify correct path names with trailing slashes, e.g. http://www.example.com/protected will fail, while http://www.example.com/protected/ will succeed.
Last edited by wet (2005-12-22 11:57:07)
Offline
Re: 404 error on password protected directories after 4.01 upgrade
Offline