Fix 500 Internal server Error on .htaccess

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>


Search the Web with Google

3 Responses to “Fix 500 Internal server Error on .htaccess”


  1. 1 Aamir Kilwani

    Great its really worked

    1
  2. 2 Stefan

    Nice, i try it, and it work perfect. Thanks thinkdj

    2
  3. 3 benny

    I’m configure with Apache/2.0.63
    From 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….

    3

Leave a Reply