500 Internal Server Error on Localhost for Web.Developer Server Suite was pissing me off for a long time. The Apache error logs shows “RewriteEngine not allowed here”. Deleting .htaccess would fix the problem, but here is the fix. It’s a problem with mod_rewrite module and Apache’s AllowOverride configuration. Here’s how to fix it :
Firstly, make sure LoadModule rewrite_module modules/mod_rewrite.so is enabled in httpd.conf (Remove # before the line to enable)
Then, edit httpd.conf .. Find out the foll lines and mod -
<Directory “/www/vhosts/localhost”> #replace this with your dir name
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All #Added
</Directory>
<Directory />
Options FollowSymLinks
# AllowOverride Limit #Old Value
AllowOverride All #Added
Order deny,allow
Deny from all
Satisfy all
</Directory>

Great its really worked
1Nice, i try it, and it work perfect. Thanks thinkdj
2I’m configure with Apache/2.0.63
3From the default loadModule rewrite_module modules/mod_rewrite.so is disabled by httpd.conf
If you need to using “.htaccess” file, make notice the mod_rewrite.so is enabled.
Thank’s a lot guyzzz….