gpt4 book ai didi

.htaccess [L]和[end]标志

转载 作者:行者123 更新时间:2023-12-04 08:08:19 25 4
gpt4 key购买 nike

[L][end]有什么区别?lastend是相同的,不是吗?

在我的.htaccess中,我有

RewriteEngine On
RewriteBase /

# I use this only to test my $_SERVER variables
RewriteRule ^phpinfo phpinfo.php [QSA,L]

RewriteRule ^(.*)$ index.php?data=$1 [QSA,L]

并且 endL的行为是相同的。我想在一个更复杂的例子中不会,那么您能给我一个这样的例子吗?

docs:

The [L] flag causes mod_rewrite to stop processing the rule set. In most contexts, this means that if the rule matches, no further rules will be processed.





Using the [END] flag terminates not only the current round of rewrite processing (like [L]) but also prevents any subsequent rewrite processing from occurring in per-directory (htaccess) context.



这是什么意思?

最佳答案

它与全局apache配置有关。如果您在httpd.conf中使用[L],那么仍有机会在.htaccess中应用一些规则。但是,如果您使用[END],则游戏结束,并且.htaccess无法添加任何内容

关于.htaccess [L]和[end]标志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23629436/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com