[請益] Apache RewriteRule的END如何用?
官網有提到 END 這個參數,但是
它沒有明確說是什麼意思,看來好像是指存在的意思?
http://httpd.apache.org/docs/2.3/rewrite/flags.html
有前輩可以指點一下嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.69.30.1
推
01/11 14:45, , 1F
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
01/13 19:52, 2F
→
01/13 19:52, , 3F
01/13 19:52, 3F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章