Hi,
Mod_rewrite might be overkill for what you are trying to do. If you have mod_alias you can just use a virtual host and redirect to the new site.
<VirtualHost 192.168.1.1> ServerName www.foo.com ServerAlias foo.com Redirect / http://www.foo.org/ </VirtualHost>
More info here:
http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect
Regards, Tim Canon
On Nov 27, 2004, at 3:03 PM, Dustin Decker wrote:
Howdy All,
I have a quick question on Apache 2.x (2.0.51 to be precise) and mod_rewrite.
I’ve been trolling documentation at apache.org, but their examples are flying over my head. For the purposes of example, let’s say I have purchased two domains – foo.com and foo.org. What I want to occur (without leaning on an http-equiv redirect in the browser), is to have anyone who visits www.foo.com automagically redirected to www.foo.org.
Can anyone share with me a recipe for this that I can chew on. (Or even better, considering how lazy I am, just throw up and live with!)
Thanks,
Dustin Decker _______________________________________________ Kclug mailing list [email protected] http://kclug.org/mailman/listinfo/kclug