• 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hallo vermaakpetrus,

    De iTSec plugin schrijft niets tussen de “BEGIN WordPress” en “END WordPress” secties. En normaal gesproken ook niet elke dag. Dan is er iets anders niet in orde (brute force aanvallen?).
    Hoogstens triggered de plugin dat die regels opnieuw worden gegenereerd (door WordPress core).
    Misschien zijn die aangepaste regels met prefix juist de goede regels … (zomaar een gedachte). Wellicht na te vragen bij TranslatePress.

    Ik denk dat je dit meer moet zoeken in de richting van frontend/backend request. Normaal gesproken schrijft WordPress naar het .htaccess bestand tijdens een backend request. Echter als de iTSec plugin iets naar het .htaccess bestand schrijft kan dat zowel tijdens een frontend als backend request gebeuren.

    Die prefix (siteaddress.com/en/) van TranslatePress is dat alleen voor de frontend of zowel voor de frontend als de backend ?

    Je kunt overigens (als tijdelijke workaround) het automatisch schrijven naar het .htaccess bestand uitschakelen in de Algemene instellingen van de iTSec plugin.

    +++++ To prevent any confusion, I’m not iThemes +++++

    Thread Starter vermaakpetrus

    (@vermaakpetrus)

    @nlpro Although I appreciate your response, none of it is accurate. I’ve tested with a clean site, where nothing else was installed except iThemes and TranslatePress.

    Here are my findings:
    1. .htaccess is updated 1 per hour.
    2. The updates to .htaccess STOP as soon as I disable iThemes
    3. In iThemes settings, there is an option to turn off iThemes ability to write to wp-config.php and .htaccess. When I turn off iThemes ability to write to these files, updates to .htaccess STOPS.

    I’ve been testing all scenarios and situations for over 6 months now. And the culprit is iThemes. When I disable iThemes, or turn off its ability to write to .htaccess and wp-config.php, the updates to .htaccess stop immediately.

    To go one step further, I installed auditing on the server, and the logs showed it was ithemes that write to the .htaccess. So yes, iThemes DOES write between the “BEGIN WordPress” en “END WordPress” areas.

    So, I’ve already done what you suggested, which is to turn off iThemes ability to write to .htaccess. Now I expect them to either

    1. STOP writing to “BEGIN WordPress” en “END WordPress”
    2. Fix them incorrectly writing TransparePress prefix to the base URL etc.

    Appreciate your help and support! I see you’ve helped many users! Keep up the great work!!

    Thread Starter vermaakpetrus

    (@vermaakpetrus)

    Can someone from iThemes please roll out a bug fix for this?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Stop iThemes from writing between “BEGIN WordPress” and “END WordPress”’ is closed to new replies.