mod rewrite - Redirecting from one domain to another with mod_rewrite -


i've set site has url like: www.flowers-oakville.com. they'd www.flowersoakville.com land on page.

the question is, best way redirect www.flowesoakville.com www.flowers-oakville.com. don't want user's browser show redirection showing new url in address bar think apache's redirect command not solution. plus, apache redirect take trip browser , i'd avoid. think solution needs mod_rewrite, understand it, within server round trip avoided , user's address bar unchanged.

but after reading through few mod_rewrite tutorials, seems mod_rewrite redirecting files, not entire website. there simple way this?

thanks help.

i @ domain level , ensure using relative links or environment variable hostname in website.

add www.flowersoakville.com cname record pointing www.flowers-oakville.com.

this serve same website, retain domain name user entered it, unless have explicitly linked actual domain in link somewhere in site.


Comments