[英]How to display one site or page, but show different URL using htaccess?
我想顯示aaa.com/test.php
,但在瀏覽器的URL字段中顯示bbb.com
。 根據此站點 ,我應該在aaa.com
的.htaccess
文件中使用以下aaa.com
:
RewriteEngine on
RewriteCond %{HTTP_HOST} bbbs.com$ [NC]
RewriteRule ^(.*)$ /test.php [R=301,L]
但是,當我訪問aaa.com/test.php
,沒有aaa.com/test.php
可循。 它仍然顯示aaa.com/test.php
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.