enabling mod_rewrite after installation

Discussion in 'Apache' started by nmallare, May 9, 2007.

  1. #1
    Hi:

    I recently took over a website, and the previous webmaster didn't install the mod_rewrite module. Can I install it now? And if so, how?

    Thanks,
    Nick
     
    nmallare, May 9, 2007 IP
  2. GolfHos

    GolfHos Member

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    If it was a default install, you might only have to uncomment a few things and bounce apache, which would be the easiest way.

    1. Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)
    2. Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound '#' sign from in front of the line)
    3. Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.


    If that isn't an option you could always recompile Apache.
    Tips here:
    http://www.devshed.com/c/a/Apache/Search-Engine-Friendly-URLs-with-mod-rewrite/
     
    GolfHos, May 9, 2007 IP