例如
http://hs326.com/goods.html
我301重定向为
http://www.hs326.com/goods.html
.htaccess文件是这样的:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
RewriteCond %{http_host} ^hs326.com [NC]
RewriteRule ^(.*)$ http://www.hs326.com/$1 [L,R=301]现在跳转之后的页面URL是http://www.hs326.com/index.php?s=/goods.html
怎么去掉中间的“/index.php?s=”啊
有木有人知道啊。
最佳答案