I need some help on mod rewrite 301 , to redirect my old website address to the new address ,
here is my scenario
ive http://www.domain1.com/page1/
want to be redirect to domain2.com/page1/
ive to replace all request goes to domain1 with domain2 and keep the page after .com
so watever was after .com should be the same just replace domain1 with domain2 .
anyone can help me with this
Regards
You may want to make sure UseCanonicalName is off, lest apache replace hostnames with the site’s ServerName.