plugin-icon

Fix .htaccess WPML language

제작자: David Garcia·
In certain cases, the .htaccess may get overwritten with the language folder.
평가
5
버전
1.0
활성화된 설치 항목
20
최근 업데이트일
Oct 30, 2023

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.

무료유료 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.3.8
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.