Reputation: 3496
I have the domain "www.first.com" which points x.x.x.x I have the domain "www.second.com" which points to y.y.y.y I want the to type in the browser "www.first.com" and get to "www.second.com" (on the y.y.y.y) but the url showed in the browser has to be the same!
If I put a .htaccess inside the x.x.x.x server with:
RewriteEngine on
RewriteRule index.php http://www.second.com
I get to second.com, but the url is changed to http://www.second.com. Is there anyway to achieve what I want to do?
1 - It's because I need to host a website on my server, but the domain doesn't point towards it and I MUST NOT CHANGE the dns. 2 - I can change some of the contents in the x.x.x.x server, but I can't neither change DNS or put the website directory inside it.
I was considering put a simple index.php in the x.x.x.x server, which make a eval(file_get_contents("www.second.com")): I know it's weird, but I can't get closer than that to the solution.
Upvotes: 0
Views: 124