..htaccess设置301

RewriteEngine On

    RewriteCond %{HTTP_HOST} xhcss.com

    RewriteCond %{REQUEST_URI} !^/com

    RewriteRule ^(.*)$ /com/$1 [L]

 

    RewriteCond %{HTTP_HOST} xhcss.cn

    RewriteCond %{REQUEST_URI} !^/cn

    RewriteRule ^(.*)$ /cn/$1 [L]


写的好!

微信扫一扫赏大洋