.htaccess伪静态实现指定地址不跳转,其他全部301

Htaccess伪静态实现指定地址不跳转,其他全部301


RewriteEngine on
RewriteRule ^文件名\.php$ - [L] #这里指定文件名,如何正确直接访问 后则继续向下执行
RewriteRule ^(.*)$ http://域名/$1 [L,R=301]  #将所有地址301到指定域名

Last modification:October 1st, 2017 at 09:24 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment