Stop iThemes from writing between “BEGIN WordPress” and “END WordPress”
-
Every day iThemes writes to the .htaccess file. It also rewrites the part #BEGIN WordPress and #END WordPress
I use TranslatePress which adds a prefix to my site, for example, siteaddress.com/en/
Unfortunately occasionally iThemes would then incorrectly write this into my .htaccess.
It changes from 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.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>to 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.
<IfModule mod_rewrite.c>
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]
</IfModule>Is there a way to prevent iThemes from writing between “BEGIN WordPress” and “END WordPress” areas?
The topic ‘Stop iThemes from writing between “BEGIN WordPress” and “END WordPress”’ is closed to new replies.