Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite configuation

         

summer

12:46 am on Dec 14, 2007 (gmt 0)

10+ Year Member



I'm having an issue getting Mod Rewrite up and running on my server. Whenever I add "RewriteEngine On" to my .htaccess file I get "500 Internal Server Error". I know .htaccess generally works because we use it for user authentication.

My conf file has the following

<Directory />
AllowOverride All
Options +FollowSymLinks +SymLinksIfOwnerMatch
<Ifmodule mod_access.c>
Allow from all
</Ifmodule>
</Directory>

AND I also added the following to the VirtualHost of the site I'm trying to use rewrite on:

Options -FollowSymLinks -SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteLog logs/SiteName-server-rewrite.log
RewriteLogLevel 5
</IfModule>

when I restart apache I don't get any errors, and nothing goes in the error logs. Any help would be greatly appreciated. I'm tiered of beating my head on the wall.

summer

jdMorgan

3:49 am on Dec 14, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As documented, either FollowSymLinks or SymLinksIfOwnerMatch is required in order to enable mod_rewrite. Since you've disabled both in .htaccess, mod_rewrite can't execute.

If you're getting 500-Server Errors, check the server error log -- It will often tell you exactly what is wrong.

Jim