0

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

1 Answers1

0

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

Community
  • 1
  • 1
Ed-AITpro
  • 310
  • 1
  • 8
  • Hi, i have done that but it does not load anything. I checked and noticed that frameset is not allowed in HTML 5, so i made some changes. Here is my code , please let me know what am i doing wrong. MemoryCloud – user6144832 Apr 02 '16 at 07:33
  • @user6144832 - I have updated my answer to include a link to a simple w3schools tutorial for adding iframes. – Ed-AITpro Apr 03 '16 at 17:22