0
我有一个WordPress网站,需要重定向一些URL基于查询字符串。需要帮助使用mod_rewrite重定向一些URL的查询字符串
的联系是/?product_brand=brandname
我需要将它们全部重定向到/?product_bisbrand=brandname
有人点我在正确的方向吗?
我有一个WordPress网站,需要重定向一些URL基于查询字符串。需要帮助使用mod_rewrite重定向一些URL的查询字符串
的联系是/?product_brand=brandname
我需要将它们全部重定向到/?product_bisbrand=brandname
有人点我在正确的方向吗?
尝试把你的文档根这个地方在htaccess文件合适:
RewriteEngine On
RewriteCond %{QUERY_STRING} (.*)product_brand=([^&]+)&?(.*)
RewriteRule ^(.*)$ /$1?%1product_bisbrand=%2&%3 [R=301,L]