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]
精彩评论