开发者

Redirecting search page?

开发者_Go百科I want this page:

search.php?q=test&x=15&y=13

to go to:

search/test/

But I don't know how to do this. The search form uses GET and uses an input image to submit.


If the query string will always be in the same order this will work:

RewriteCond %{QUERY_STRING} q=(.*?)&x=(\d*)&y=(\d*)
RewriteRule ^/search.php /search/%1?x=%2&y=%3 [R,L]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜