內容簡介
總結:
某些第三方外掛過於頻繁地調用flush_rewrite_rules(true)函數,導致WordPress覆寫.htaccess。在某些情況下,甚至在每個頁面請求時,它會在瀏覽前端時調用。
當此情況發生時,WPML會根據需要將語言文件夾添加到home_url中。然而,這導致.htaccess中的RewriteBase不正確,使前端出現故障。
此外,您將收到一個500 Internal Server Error錯誤。
而這就是我們在服務器日誌中看到的內容:
AH00124:由於可能的配置錯誤,請求超過了10個內部重定向的限制。 如有必要,使用'LimitInternalRecursion'來增加限制。使用'LogLevel debug'來獲取追踪。
問題與答案:
問題:這個問題是由什麼導致的?
答案:問題實際上是由某些第三方外掛過於頻繁地調用flush_rewrite_rules(true)函數引起的。
問題:這個問題會導致什麼結果?
答案:這導致WordPress覆寫.htaccess,從而導致前端顯示出錯。
問題:有沒有其他額外的錯誤?
答案:是的,您將收到一個500 Internal Server Error錯誤。
問題:可以從伺服器日誌中看到什麼信息?
答案:您將在伺服器日誌中看到以下內容:AH00124:由於可能的配置錯誤,請求超過了10個內部重定向的限制。 如有必要,使用'LimitInternalRecursion'來增加限制。使用'LogLevel debug'來獲取追踪。
外掛標籤
開發者團隊
原文外掛簡介
The problem actually comes from certain third-party plugins calling flush_rewrite_rules(true) function too often. This causes WordPress to overwrite .htaccess. However, in some cases, this happens so often, sometimes even on every page request, that it’s called while browsing the front-end in another language.
When this happens, WPML goes ahead and adds the language folder to home_url as usual. This, however, results with an incorrect RewriteBase in .htaccess and ends up breaking the front-end.
Additionally, you’ll get a 500 Internal Server Error error.
And this is what we’ll see in server logs:
AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.
