无需更改URL即可重定向 [英] Redirect without change URL

查看:129
本文介绍了无需更改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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆