You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Language folder gets added randomly into htaccess file causing infinite redirect loop
When issue happens htaccess looks like this:
BEGIN WordPress
The directives (lines) between "BEGIN WordPress" and "END WordPress" are
dynamically generated, and should only be modified via WordPress filters.
Any changes to the directives between these markers will be overwritten.
Any feedback on this? This morning it happened again, our htaccess is messed up
BEGIN WordPress
The directives (lines) between "BEGIN WordPress" and "END WordPress" are
dynamically generated, and should only be modified via WordPress filters.
Any changes to the directives between these markers will be overwritten.
I've had the same issue for monthes. Currently, the other way to fix the issue (until it shows up again) is to visit the Permalinks settings in the admin so that WP flushes the rules and regenerates the default .htaccess.
I've noticed that the faulty htaccess has its comments (the few lines just below "BEGIN WordPress") in english while on my localized version of WP (in french), the default htaccess has this translated. It looks like qtranslate-xt generates its own .htaccess from scratch.
I haven't been able to track what triggers the issue but so far it has only happened on a website in production and not on its version on my dev environment, so it's really confusing.
Describe the bug
Language folder gets added randomly into htaccess file causing infinite redirect loop
When issue happens htaccess looks like this:
BEGIN WordPress
The directives (lines) between "BEGIN WordPress" and "END WordPress" are
dynamically generated, and should only be modified via WordPress filters.
Any changes to the directives between these markers will be overwritten.
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /en/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /en/index.php [L]
END WordPress
Screenshots
Debug info
The text was updated successfully, but these errors were encountered: