我試圖從URL中剪切參數,但保留其他參數,我永遠不知道該值。htaccess:嘗試從url中刪除參數,保留其他可選參數
www.example.com/?useless=somevalue&foo=somevalue&bar=somevalue
to =>
www.example.com/?foo=somevalue&bar=somevalue
www.example.com/?useless=somevalue
to =>
www.example.com/
www.example.com/?foo=somevalue&bar=somevalue&useless=somevalue
to =>
www.example.com/?foo=somevalue&bar=somevalue
另一個問題似乎是實際值的樣子' www.example.com/?useless =%25252525252525252525252525252525252525252Fproc%25252525252525252525252525252525252525252Fself%25252525252525252525252525252525252525252Fenviron'那麼我如何匹配這些? –