我将phpstudy的根目录做了修改(以前是WWW,现在改成了vs),并且在vs目录做了一个one作为stiol.com的网站目录,我做301失败,我不修改目录是可以301的!!
我301代码<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^stiol.com [NC]
RewriteRule ^(.*)$ http://www.stiol.com/$1 [R=301,L]
RewriteRule ^jin/jiang/119.html$ http://www.stiol.com/$1 [R=301,L]
</IfModule>
我301代码<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^stiol.com [NC]
RewriteRule ^(.*)$ http://www.stiol.com/$1 [R=301,L]
RewriteRule ^jin/jiang/119.html$ http://www.stiol.com/$1 [R=301,L]
</IfModule>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货