LiteSpeed – E noabort, Add LiteSpeed htaccess code to BPS

Home Forums BulletProof Security Pro LiteSpeed – E noabort, Add LiteSpeed htaccess code to BPS

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #25405
    AITpro Admin
    Keymaster

    https://wordpress.org/support/topic/wordfence-and-bulletproof-working-together?replies=2#post-7490955

    You would need to use BPS Custom Code to add/combine the RewriteRule .* - [E=noabort:1] code into your root htaccess file code and save it permanently.

    1. Go to the BPS htaccess File Editor page, click on the Your Current Root htaccess File tab, scroll down in your Root .htaccess file code until you see this .htaccess code below.

    # WP REWRITE LOOP START
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    2. Copy your # WP REWRITE LOOP START code to this BPS Root Custom Code text box: CUSTOM CODE WP REWRITE LOOP START
    3. After you have copied your WP Rewrite Loop Start .htaccess code then add your litespeed noabort code. Your code should look like this example below after you have combined/added your code.
    4. Click the Save Root Custom Code button.
    5. Go to the BPS Security Modes page and click the Root Folder BulletProof Mode Activate button.

    # WP REWRITE LOOP START
    RewriteEngine On
    RewriteBase /
    # LiteSpeed noabort
    RewriteRule .* - [E=noabort:1]
    RewriteRule ^index\.php$ - [L]
    #27684
    armintz
    Participant

    [Topic has been merged into this relevant Topic]
    what’s the proper way using BPS pro to add this to my htaccess?
    RewriteRule .* – [E=noabort:1]
    thanks

    #27688
    AITpro Admin
    Keymaster

    @ armintz – See the information in this forum topic above for the steps to add your custom code to BPS Custom Code.

    #34495
    Jaiji
    Participant

    Hi, I have https redirect code in place, I’m just wondering if this would be the correct way to add the Wordfence/Litespeed code:

    # WP REWRITE LOOP START
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} !=on
    RewriteCond %{SERVER_PORT} ^80
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    # LiteSpeed noabort
    RewriteRule .* - [E=noabort:1]
    RewriteRule ^index\.php$ - [L]
    #34496
    AITpro Admin
    Keymaster

    @ jaiji – Looks ok to me.  On some web hosts this section of the htaccess rewrite code: %{HTTP_HOST} is not interpreted correctly by a server so you may need to add your actual host/domain/URL name:  https://www.example.com%{REQUEST_URI} [R=301,L]

    #34497
    Jaiji
    Participant

    Thanks. The redirect’s been there a while and works OK, I’m just adding the Litespeed part.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.