htacess成功实现网站路径301转向,庆祝下
http://xxxx.cn/blog----->http://xxxx.cn
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://xxxx.cn/$1 [R=301,L]
</IfModule>
htacess成功实现网站路径301转向,庆祝下
版主: le720