You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2007/05/31 17:25:31 UTC

[Httpd Wiki] Update of "Rewrite/Troubleshooting/HtaccessIgnored" by noodl

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The following page has been changed by noodl:
http://wiki.apache.org/httpd/Rewrite/Troubleshooting/HtaccessIgnored

The comment on the change is:
First draft, needs work.

New page:
When attempting to use mod_rewrite in a .htaccess file fails, try these steps.

 1. Stop! Don't use htaccess files for mod_rewrite unless you have no other choice. Doing so is slow and confusing.

 1. Put a nonsense line (such as Wooga) in your htaccess file and try the request again. If you don't see a 500 Internal Server Error message, your htaccess file is being ignored altogether. The solution is to set both !AllowOverride !FileInfo and Options !FollowSymlinks in httpd.conf for the directory in question. However, if you are able to make that change, see step one.
 
 1. If you think your rules look ok but you still see a 500 Internal Server Error message, make sure mod_rewrite is loaded in the server.

 1. If you have ensured that mod_rewrite is loaded, and that !RewriteRule is enabled for htaccess files, it could be that your rules are looping. To confirm this, try a very simple rewrite rule like !RewriteRule . http://www.apache.org/

 1. See step one.