[請益] Apache RewriteRule的END如何用?

看板PHP作者 (...)時間14年前 (2012/01/11 12:54), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
官網有提到 END 這個參數,但是 它沒有明確說是什麼意思,看來好像是指存在的意思? http://httpd.apache.org/docs/2.3/rewrite/flags.html 有前輩可以指點一下嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.69.30.1

01/11 14:45, , 1F
就是 [L]
01/11 14:45, 1F
不知道你的意思是說 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)

01/13 19:52, , 2F
This does not apply to new requests resulting from
01/13 19:52, 2F

01/13 19:52, , 3F
external redirects.
01/13 19:52, 3F
文章代碼(AID): #1F3HNiAm (PHP)
文章代碼(AID): #1F3HNiAm (PHP)