1

Is it possible to redirect URL in to another URL without showing the new URL?

eg:

When users go to www.sample1.com/page1.html , it should show www.sample2.com/page2.html . But URL needs to be showing like it belongs to www.sample1.com , or something like this www.subdomain.sample1.com/blah.html.

I need to host some pages for another domain , but those pages should look like they belong to that domain or to a subdomain of that domain.

Using an iframe is not an option in my circumstances,any other suggestions are welcome.

4

1 回答 1

0

最简单的可能是用于mod_proxy在子上下文中显示所有 sample2.com 页面:

ProxyPass   /sample2   http://www.sample2.com

因此,sample2.com/page2.html将显示为sample1.com/sample2/page2.html

否则mod_rewrite也可能有用,特别是proxy|Pflag

希望有帮助。

于 2012-11-30T10:40:32.403 回答