Install mod_rewrite

Discussion in 'Apache' started by Alexxxej, Nov 22, 2005.

  1. #1
    I don't understand, hot to to enable mod_rewrite. I read a lot of information about mod_rewrite: Uncomment the line LoadModule rewrite_module modules/mod_rewrite.so, but I don't have this line, and, of course, file mod_rewrite.so.
    A tried ti recompile apache: ./configure
    --enable-module=rewrite
    --enable-shared=rewrite
    --enable-module=most
    but still mod_rewrite doesn't work and there are no mod_rewrite.so
    What do I wrong?
    Please, help me!
    Thanks!
     
    Alexxxej, Nov 22, 2005 IP
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I compiled v2 with these options:

    .configure --enable-ssl --enable-rewrite

    , which builds Apache with mod-rewrite built-in. You can check if your version has it enabled if you run something like this:

    /usr/local/apache2/bin/httpd -l

    The option is a lower case L. The output will look something like this

    Compiled in modules:
    core.c
    ...
    mod_rewrite.c

    If you do get mod_rewrite.c in your output, then just check your configuration (i.e. RewriteEngine, etc).

    J.D.
     
    J.D., Nov 23, 2005 IP
  3. icoman

    icoman Peon

    Messages:
    9
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The output will look something like this

    Compiled in modules:
    core.c
    ...
    mod_rewrite.c

    here it is not the mod_rewrite and eather on apache2/modules/

    i've just upgraded apache 2.0.53 to 2.0.63 and the mod_rewrite is not there ..

    how i will install mod_rewrite.c ?
    :confused::confused:
     
    icoman, Jul 14, 2008 IP