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.
我想知道如何去掉所有查询字符串,即
domain.com/?a=123 -->> domain.com
和
domain.com/page.asp?b=456 -->> domain.com/page.asp
罗伯特,我想这是我第三次回复你的问题了:
RewriteEngine on RewriteBase / RewriteCond %{QUERY_STRING} .+ RewriteRule (.*) /$1? [NC,NS,R=301,L]
相信我,我知道这是一个很好的规则,但是我们需要知道它可能与之冲突的其他规则。