开发者

htaccess redirect remove query string

I am using this 301 redirect currently:

redirect 301 /oldurl http://www.domain.com/newurl

the problem is I get

http://www.domain.com/newurl?/oldurl

What synt开发者_JAVA百科ax would i use with a RewriteRule instead for each url so I don't get the query string on the end?


Could do with some more details on the values for old and new url, but given the information provided:

RewriteRule ^oldurl$  newurl  [R=301,L]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜