.htaccessurlhttp-redirecturl-masking

2 Different Servers - sub domain redirect url masking


I have gone through a lot of posts about .htaccess but its not working as my websites are on 2 different servers.

I have 2 websites, both are on different servers. One is on Linux Server and the other is on Windows Server.

My main website is hosted on the linux server. Lets call this abc.com My other website is hosted on windows server - lets call this as xyz.com

I have created a sub domain on abc.com, subdomain.abc.com

I want to redirect subdomain.abc.com to xyz.com without changing the url which should remain as subdomain.abc.com. I have tried all sorts of combination in .htaccess but it does not work. Can you please help.

Thanks VJ


Solution

  • Use an IFrame instead of trying to do this with htaccess files/code. Using htaccess to redirect the page but keep the URL structure and change the domain only

    Edit|Update: Use iframes and not frameset. See this w3schools tutorial page. Adding an iframe is very simple so keep everything very simple - http://www.w3schools.com/tags/tag_iframe.asp