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.
嗨,有人可以解释一下这条规则到底会做什么。我想知道它的作用是什么?接近尾声。
RewriteRule ^(products/someproduct.html)$ https://www.myserver.com/? [R=301,L]
期待对最后一个字符的快速解释?
这可以防止将查询字符串附加到新 URL。
例如,请求 https://www.myserver.com/products/someproduct.html?qu=1&bu=2:
https://www.myserver.com/products/someproduct.html?qu=1&bu=2
with? : 被重定向到https://www.myserver.com/ without? : 被重定向到https://www.myserver.com/?qu=1&bu=2
?
https://www.myserver.com/
https://www.myserver.com/?qu=1&bu=2