httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bagus" <ba...@cox.net>
Subject [users@httpd] mod_rewrite questions?
Date Thu, 11 Nov 2004 23:22:46 GMT

Hi, hopefully this will be simple.

I have two virtual hosts pointing at the same directory root.

They are for example

http://www.foo.com and http://www.bar.com

For various resaons I want all requests to http://www.bar.com to be
redirected to http://www.bar.com/bar/

Is this a Mod Rewrite  issue?  What's the syntax that I'd use?

Also, when I try putting various configuration bits into the virtual host
directive in my httpd.conf I get errors with apachectl configtest.

ie adding this to a virtual host

RewriteEngine on
I get:
Syntax error on line 401 of /usr/local/apache/conf/httpd.conf:
Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module
not included in the server configuration

Is there more that I have to do to get this to work?

Thanks for any help.

Bagus

Mime
View raw message