Textpattern

Return to main site

Related

Frequently Asked Questions

How do I get password-protected directories (with .htaccess) to co-exist with textpattern?

Q.

Using .htaccess authentication makes the directory inaccessible.
HTTP Basic Authentication with the webserver redirects everything to textpattern’s index page.
Using HTTP Auth with Apache results in 404 error pages.

A.

Please add the following lines to your .htaccess file:

ErrorDocument 401 /[path_to_file]/myerror.html ErrorDocument 403 /[path_to_file]/myerror.html

Make sure you point to existing, static html files.

Explanation: HTTP Basic-Auth first sends 401 Unauthorized to request a password from the browser. The webserver tries to serve the corresponding, specified Errordocument. However when the ErrorDocument directive of your webserver is set wrongly, i.e. points to a non-existent file, Textpattern ends up handling the page-request.

Also See:

Posted 15 January 2006, 14:22 by Sencer Yurdagül

---