URL重定向 WWW问题

浏览:785 发布日期:2014/07/30 分类:求助交流 关键字: 重定向 URL 跳转
我想将没有WWW的网页转成有WWW的网页
例如
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=”啊
有木有人知道啊。
最佳答案
评论() 相关
后面还有条评论,点击查看>>