• Resolved Florian

    (@flowingweb)


    Hi,

    Wordfence wants me to edit a RewriteRule, but the RewriteRule is controlled by Litespeed Cache. Is there an option to set noabort:1 in the plugin or how do I have to save it to htaccess?

    Info Wordfence:
    https://www.wordfence.com/help/advanced/system-requirements/litespeed/

    htaccess has to like this:
    # BEGIN LiteSpeed noabort
    <IfModule rewrite_module>
    RewriteEngine On
    RewriteRule .* – [E=noabort:1]
    </IfModule>
    # END liteSpeed noabort

    But I already have these lines form your plugin:
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* – [E=Cache-Control:no-autoflush]
    </IfModule>

    Now I don’t want to extend the RewriteRule bc your plugin will probably override this. What do I have to do?

    Thanks for your help,
    Florian

Viewing 3 replies - 1 through 3 (of 3 total)
  • Add this code instead and place it on top of .htaccess. The suggest code from Wordfence is wrong and unsafe and allows noabort of every script on your server, but doesn’t prevent script timeout.

    Set the path to Wordfence script.

    # BEGIN LiteSpeed noabort
    <IfModule LiteSpeed>
    SetEnvIf Request_URI "^\/path_to_wordfence\/script\.php" noabort noconntimeout
    </IfModule>
    # END liteSpeed noabort
    Plugin Support qtwrk

    (@qtwrk)

    you can place any rewrite rule OUTSIDE of LSCWP MAKER section , then it will not be overridden by cache plugin.

    Thread Starter Florian

    (@flowingweb)

    Thanks for the answer!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wordfence wants me to edit RewriteRule’ is closed to new replies.