RewriteRule 定义不起作用
如果我有以下 RewriteRule 且没有任何其他 RewriteRule 定义
RewriteRule ^de/(var)/(.+) /$1/$2 [NC,L]
,则一切正常,
但是当我在 .htaccess 文件中也有以下 RewriteRule 时
RewriteRule .* index.php [L]
,则第一个 RewriteRule 不起作用。
If I have the following RewriteRule without any other RewriteRule definitions
RewriteRule ^de/(var)/(.+) /$1/$2 [NC,L]
Then everything works fine
But when I have the following RewriteRule as well in the .htaccess file
RewriteRule .* index.php [L]
Then the first RewriteRule does not work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信这就是你应该遵守这两条规则的方式:
I believe this is how your should keep both rules:
下面的解决方案应该可以解决您眼前的问题。
如果您提供有关规则意图的详细信息,可以提供更好的解决方案。
This solution below should fix your immediate problem.
A better solution could be provided if you supply details about the intent of your rules.