重定向而不更改 URL [英] Redirect without change URL
问题描述
是否可以在不更改浏览器 URL 的情况下将 URL www.siteA.com 重定向到 www.site2.com/Default.aspx?SiteSource=siteA?
is it possible to redirect an URL www.siteA.com to www.site2.com/Default.aspx?SiteSource=siteA without changing the browser's URL?
同样,访问 www.siteA.com/Page2.aspx 将重定向到 www.site2.com/Page2.aspx?SiteSource=siteA
Similarly, accessing www.siteA.com/Page2.aspx will redirect to the www.site2.com/Page2.aspx?SiteSource=siteA
推荐答案
您还可以使用 mod_proxy(或用于不同 Web 服务器的类似功能),以便您的服务器提供的页面与远程页面相同.但这有一些安全和性能影响(您让客户端让您的服务器执行任意工作,通过网络从远程服务器复制数据).
You can also use mod_proxy (or similar functionality for a different web server) so that the page your server serves is the same as the remote page. But this has some security and performance implications (you're letting the client make your server do arbitrary work copying data across the network from the remote server).
这篇关于重定向而不更改 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!