重定向的网站,但保持我的网址在浏览器地址栏 [英] Redirect website but maintain my url in browser address bar

查看:133
本文介绍了重定向的网站,但保持我的网址在浏览器地址栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我们的新网站正在开发中,我们要允许一个小的用户群来看待新的网站,并获得反馈。我们目前的网站www.sitea.com将保持功能和可用的,但我们希望他们访问www.sitea.com/v2并让浏览器保持URL www.sitea.com/v2但显示新网站WWW的内容。 siteb.com这可能吗?

While our new website is under development we want to allow a small user base to look at the new site and get feedback. Our current site www.sitea.com will remain functional and available but we want them to visit www.sitea.com/v2 and have the browser maintain the url www.sitea.com/v2 but show the contents of the new site www.siteb.com is this possible?

preferably这与一个.htaccess文件做,如果可能,我愿意接受其他的建议,但。

Preferably this would be done with an .htaccess file if possible I am open to other suggestions though.

推荐答案

也许,你可以使用的的ProxyPass =nofollow的> <$ C $此

Maybe, you can use ProxyPass for this

该指令允许远程服务器映射到本地服务器的空间。

This directive allows remote servers to be mapped into the space of the local server.

我还没有使用这个自己,但这样的事情可能工作

I haven't used this myself, but something like this might work

<Location "/v2/">
    ProxyPass "http://www.siteb.com/"
</Location>

不幸的是,这不能在.htaccess文件使用。该语境只列出

上下文:服务器配置,虚拟主机,目录

Context: server config, virtual host, directory

请参阅该手册。

这篇关于重定向的网站,但保持我的网址在浏览器地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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