Hide your secret files INSIDE photos, videos or other files with OmniHide PRO.

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 />
Options FollowSymLinks
# AllowOverride Limit #Old Value
AllowOverride All #Added
Order deny,allow
Deny from all
Satisfy all

Discover upcoming movies

27 responses to “Fix 500 Internal server Error on .htaccess”

  1. You made my day! I am very happy and relaxed too that I find this blog. I was looking for the matter discussed in blog post. If you have some more blogs on the material please share those as well. Thanks a lot and keep sharing such useful information.

  2. abir says:

    It did not work , i gonna be crazy :////// please help me
    i use the wamp server
    apach 2.2.17
    i have activated the rewrite module
    and changed the httpd.conf but it still not working !!!!!!!!!!!!!

  3. omarxp says:

    thanks, very helpful, this is what I was looking for.

  4. serai says:

    not working

  5. Stranger says:

    thanks a lot buddy… i was going crazy about for over 2 weeks..

  6. Amir says:

    wow i thought wtf is this for tut, but it really worked!!!!!!!!!!!

  7. mulankingdom says:

    thanks a bunch!

  8. defi says:

    thanks.. ^_^

  9. shahmy says:

    Hi Thank You. It's now working in good manner.

  10. Ranui says:

    Thanks for this. It works perfectly now.

  11. Reejo says:

    thank u .. it worked

  12. vincy says:

    I tried it, but I receive error message like,

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  13. This is a very helpful post, I was looking for this info. Just so you know I located your weblog when I was checking for blogs like mine, so please check out my site sometime and leave me a comment to let me know what you think.

  14. nara_l says:

    Thanks It works like magic.

  15. infocity says:

    If your domain is on linux server and you are using cpanel than you can get 500 internal server error if you have wrong directory /files permissions. Directories and folders should be 755


  16. Have the same problem, I'll try..

  17. bali car rental says:

    Have the smame problem, I'll try..

  18. I was looking for the solution and at last I got it here. thanks guys.

  19. Ali says:

    Thanks, it work 100%

  20. Ali says:

    Thanls, i work 100%

  21. eGodaddy says:

    This got me closer, but I am still getting a 500 error, having just migrated to Vista x64. 🙁

    I tried using and a few other tricks I found on the Internet, but still fires the error when I rename the htaccess.txt file.

    Any idea, guys?

  22. HydroMan says:

    Thanks for the tip, I used the following method instead of editing the httpd.conf file.

    As an alternative to keep the code all tidy you can write the changes to a seperate .conf file. As long as the setting for VHOST is enabled.

    If you have define('VHOST', 'yes'); then you can edit the vhost.conf file usually found in the conf directory of the root. i.e. (depending on your directory structure): /var/www/vhosts/domain_name_here.com/conf/vhost.conf

    then add the following (amend directory structure for your install location)

    Options FollowSymlinks

    AllowOverride All

    Order deny,allow

    Deny from all

    Satisfy all

  23. benny says:

    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….

  24. Stefan says:

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

  25. Aamir Kilwani says:

    Great its really worked


We’re on Hostgator and we love it

Use coupon BLOGULATE994 and get 9.94$ flat off from any hosting package of your choice!

We're on Hostgator and are extremely happy with the service. Never down, cheap and powerful servers!
Use coupon BLOGULATE994 and get 9.94$ flat off from any hosting package of your choice!

Search Blogulate