301跳转,文件

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
RewriteCond %{HTTP_HOST} ^xxtdqx.yxxsl.cn [NC]
RewriteRule ^(.*) http://www.xxtdqx.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^xxtdqx.com [NC]
RewriteRule ^(.*) http://www.xxtdqx.com/$1 [L,R=301]
</IfModule>

版权声明:本文为博主原创文章,未经博主允许不得转载。

你可能感兴趣的:(301跳转,文件)