• How to enable mod rewrite .htaccess on localhost with Wamp Server ?

    by  • 29 Sep 2011 • Tutorial • 0 Comments

    If you are using Wamp as web server on your local computer, by default rewrite condition for htaccess are disabled. So, if you place a htaccess file in your root folder, it will not work. It will show error 500 Internal Server Error.
    500 Internal Server Error Wamp

    To solve this problem, you should have to change Apache Configuration (httpd.conf).
    Wamp Edit Apache Configuration httpd.conf
    Search “rewrite” then you will find a row with this code
    #LoadModule rewrite_module modules/mod_rewrite.so
    Wamp Edit Apache Configuration httpd.conf(2)
    Remove the symbol “#” at the beginning of code. The meaning of symbol “#” is comment (pass the code for processed)
    Wamp Edit Apache Configuration httpd.conf(3)
    Save your file and restart All Services of Wamp
    Wamp Edit Apache Configuration httpd.conf(4)
    Wamp Restart All Services

    Try to access your page in your browser. Hope it works.

    About

    Leave a Reply

    Your email address will not be published. Required fields are marked *