1
artandlol 2017-03-18 20:50:40 +08:00 via Android
作为一位非开发,觉得应该做 301 跳转。
|
3
crab 2017-03-18 21:43:16 +08:00
http://www.htaccesseditor.com/sc.shtml#a_redirect
<Files ~ "^\.(htaccess|htpasswd)$"> deny from all </Files> Redirect permanent aaa.xxx bbb.xxx order deny,allow 看下对不对 |
5
lslqtz 2017-03-18 23:15:51 +08:00
http://jingyan.baidu.com/article/066074d694ab77c3c31cb077.html
百度一下就知道的东西,为什么要拿出来问... RewriteEngine On RewriteCond %{HTTP_HOST} ^aaa.xxx$ [NC] RewriteRule ^(.*)$ http://bbb.xxx/$1 [L,R=301] |
6
lslqtz 2017-03-18 23:17:20 +08:00
针对特定目录:
RewriteEngine On RewriteCond %{HTTP_HOST} ^aaa.xxx$ [NC] RewriteCond %{REQUEST_URI} ^/12345/ RewriteRule ^(.*)$ http://bbb.xxx/12345/$1 [L,R=301] |