[英]htaccess redirect search query string with keyword
我正在嘗試使用手寫單詞(不是動態單詞)進行搜索重定向,但從未使用同一個單詞
我需要重定向:
http://www.example.com/search/results.html?search_in_description=1&keyword=rabbit
對此:
http://www.example.com/recherche?orderby=position&controller=search&orderway=desc&search_query=rabbit
知道“兔子”只是一個例子,可以是任何單詞。
嘗試:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^search_in_description=1&keyword=([^&]+)
RewriteRule ^search/results.html$ /recherche?orderby=position&controller=search&orderway=desc&search_query=%1 [L,R=301,NE]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.