我怎样才能重定向到一个不同的域,而无需更改URL在地址栏? [英] How can I redirect to a different domain without changing the URL in the address bar?

查看:216
本文介绍了我怎样才能重定向到一个不同的域,而无需更改URL在地址栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从重定向:

domain1.com/photos

domain1.com/photos

要:

domain2.com/photos

domain2.com/photos

我要在地址栏中的URL,还是阅读:

I want the URL in the address bar to still read:

domain1.com/photos。

domain1.com/photos.

有没有办法做到这一点只用的.htaccess?

Is there a way to do this using only .htaccess?


有关domain1.com我的.htaccess文件是目前完全空白。

My .htaccess file for domain1.com is currently completely blank.

推荐答案

没有,没有办法使用的.htaccess做到这一点。这样做将present一个明显的安全漏洞 - !想象一下有人用银行网站这样

No, there isn't a way to do this with .htaccess. Doing so would present a glaring security hole - imagine someone doing this with a bank's website!

这篇关于我怎样才能重定向到一个不同的域,而无需更改URL在地址栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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