The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Rewrite Engine doesn't work

Discussion in 'General Discussion' started by kerosin, Oct 17, 2002.

  1. kerosin

    kerosin Well-Known Member

    Joined:
    Aug 27, 2002
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    On my box seems to don't work RewriteEngine (not in .htaccess not in httpd.conf).

    I'm using apache from last buildapache.sea build (Oct 16 18:46) with enabled Rewrite module option.

    in httpd.conf is present:

    LoadModule rewrite_module libexec/mod_rewrite.so
    and
    AddModule mod_rewrite.c

    and I was trying to put rules in both .htaccess and httpd.conf(virtualhost section):

    RewriteEngine on
    RewriteRule ^/$ http://nantucketmail.com [L]

    but with no success.

    so I really don't know what can be wrong.

    Is RewriteEngine working for somebody else (RewriteEngine is also used for Hotlink Protection- does it work for you )?



    Thanks

    Michal
     
  2. Omar

    Omar Well-Known Member

    Joined:
    Jul 30, 2002
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    6
    Did you restart apache after making the changes to httpd.conf?

    - Omar
     
  3. JustinK

    JustinK Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    251
    Likes Received:
    0
    Trophy Points:
    16
    the rewrite engine's rather picky and takes some extra tuning usually to get things the way it likes it. Try this instead:
    RewriteEngine on
    RewriteRule ^(.*)$ http://nantucketmail.com/ [L]
     
Loading...

Share This Page