I need to have a webpage with the name for example www.abc.com
to redirect to www.xyz.com
however keeping www.abc.com
in the URL bar.
Below is my Apache Config:
Redirect / www.xyz.com
service httpd reload
From here when I access www.abc.com
it redirects fine to www.xyz.com
show in the URL Bar instead of www.abc.com
. I did some googling and noticed this site: http://www.ontwerps.nl/domain-redire...th-url-masking
So I changed the code to:
RedirectMatch 301 (.*)$ www.xyz.com$1
This does a permanent redirect fine however the URL name still changes to www.xyz.com
I was having problems with method 2 & 3 on http://www.ontwerps.nl/domain-redire...th-url-masking
as If I had the above code would this conflict with making a frame/iframe do the job instead of Apache??
Is there an easier way I should be doing this or is there a better way with mod_rewrite??
A bit lost and confused.