不带参数的 RewriteRule
我想将 /cart.php?whatever 重定向到 /flow.php (我不关心 cart.php 之后的参数),所以我写了这个规则:
RewriteRule ^cart.php flow.php$ [R=301,L]
但它重定向到 /flow.php?whatever
I want to redirect /cart.php?whatever to /flow.php (I don't care about parameters after cart.php), so I wrote this rule:
RewriteRule ^cart.php flow.php$ [R=301,L]
but it redirect to /flow.php?whatever
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试:
Try: