Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图把这个:
/index.php?param1=1¶m2=1¶m3=1
进入这个:
/index.php?param1=1¶m3=1
我原以为这会起作用:
RewriteCond %{QUERY_STRING} param2 [NC] RewriteRule ^index.php?(.*)param2=([0-9]+)(.*)$ index\.php\?$1&$3 [R=301,QSA,L]
...但是它和其他变体都在做草皮:(
有任何想法吗?
尝试这个 :
RewriteCond %{QUERY_STRING} ^(.*&)?param2=([^&]+)&?(.*)?$ RewriteRule ^index\.php$ index.php?%1%3 [L,R=301]