[英]htaccess redirect domain a.com to b.com/blog with keep a.com adress
I want redirect domain a.com to b.com/blog 我想将域名a.com重定向到b.com/blog
but want keep a.com adress in browser bar. 但要在浏览器栏中保留a.com地址。
I currently have 我目前有
RewriteEngine On
RewriteCond %{HTTP_HOST} ^a\.com$ [NC]
RewriteRule ^(.*)$ b.com/$1 [L,R=301]
You can't. 你不能 It would be quite a security hole for a browser to be redirected to a different domain without the address bar showing this!
如果不将地址栏显示出来,将浏览器重定向到其他域,将是一个很大的安全漏洞!
You could use iFrames ... but I would first question why you want to do this at all. 您可以使用iFrames ...,但我首先会问您为什么要这样做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.