Eric
Eric

Reputation: 1261

Redirecting links

I'm aware of the concept of using a url re-redirect so that 2 urls map to the same page. Is there anyway to keep the url cosmetically the same? In other words, a user goes to:

http://www.sitename.com/pagename.php

but they get redirected to:

http://www.anothersite.com/pagename.php

where the user still sees in their window:

http://www.sitename.com/pagename.php

Upvotes: 0

Views: 32

Answers (1)

Olavz
Olavz

Reputation: 199

Check out this post Redirect Subdomain Using htaccess and Keep URL

What you would want to investigate is .htaccess and mod_proxy()

You could also copy the contents with PHP with

file_get_contents("http://www.anothersite.com/pagename.php");

and print this out on sitename.com

Upvotes: 2

Related Questions