[英]htaccess redirect search query string with keyword
I am struggling with search redirect with handwritten word (not dynamic) but never the same word 我正在尝试使用手写单词(不是动态单词)进行搜索重定向,但从未使用同一个单词
I need to redirect this: 我需要重定向:
http://www.example.com/search/results.html?search_in_description=1&keyword=rabbit
To this: 对此:
http://www.example.com/recherche?orderby=position&controller=search&orderway=desc&search_query=rabbit
Knowing "rabbit" is just an example, could be any word. 知道“兔子”只是一个例子,可以是任何单词。
Try: 尝试:
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.