问题描述
是否可以将网址 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即可重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!