[英]Redirect from page without parameters to page with parameters in htaccess
我需要從.htaccess的mod_rewrite部分中的此類頁面www.site.ru/machines/重定向到頁面www.site.ru/machines/?set_filter=y&PRICE_MIN=4500。
您可以在根.htaccess中使用此規則:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(machines/)$ /$1?set_filter=y&PRICE_MIN=4500 [L,NC,R]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.