kerosin

Well-Known Member
Aug 27, 2002
83
0
156
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
 

Omar

Well-Known Member
Jul 30, 2002
82
0
156
Did you restart apache after making the changes to httpd.conf?

- Omar
 

JustinK

Well-Known Member
Sep 4, 2001
251
0
316
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]