使用htaccess,我想重定向
index.php?page=search&action=go&string=John+Doe
到
search.php?string=John+Doe
但仅当page = search and action = go in first url(string vary)
时感谢任何帮助,谢谢。
答案 0 :(得分:3)
使用以下规则,
RewriteCond %{QUERY_STRING} ^page=search&action=go&string=(.+?)$
RewriteRule ^ /search.php?string=%1 [R=301,L]