作者siebergx (...)
看板PHP
标题[请益] Apache RewriteRule的END如何用?
时间Wed Jan 11 12:54:02 2012
官网有提到 END 这个参数,但是
它没有明确说是什麽意思,看来好像是指存在的意思?
http://httpd.apache.org/docs/2.3/rewrite/flags.html
有前辈可以指点一下吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.69.30.1
1F:推 mervynW:就是 [L] 01/11 14:45
不知道你的意思是说 END 跟 L 是同一个东西,
还是说它们的功能一样。
至少官网 END 跟 L 列在两个不同段落,而 END 是这样介绍:
Using the [END] flag terminates not only the current round ot
rewrite processing (like [L]) but also prevents any subsequent
rewrite processing from occurring in per-directory (htaccess)
context.
但是我用的结果好像没什麽作用,我有个 RewriteRule 还是会造成回圈。
那个 RewriteRule,我希望它只使用一次就好,
所以我用 [R,L,END],但是还是会一直重复重写。
※ 编辑: siebergx 来自: 114.36.197.121 (01/11 23:25)
2F:→ buganini:This does not apply to new requests resulting from 01/13 19:52
3F:→ buganini:external redirects. 01/13 19:52