Home › Forums › BulletProof Security Pro › LiteSpeed – E noabort, Add LiteSpeed htaccess code to BPS
Tagged: Custom Code, LiteSpeed, noabort
- This topic has 5 replies, 3 voices, and was last updated 7 years, 1 month ago by Jaiji.
-
AuthorPosts
-
AITpro AdminKeymaster
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]
armintzParticipant[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]
thanksAITpro AdminKeymaster@ armintz – See the information in this forum topic above for the steps to add your custom code to BPS Custom Code.
JaijiParticipantHi, 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]
AITpro AdminKeymaster@ 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]
JaijiParticipantThanks. The redirect’s been there a while and works OK, I’m just adding the Litespeed part.
-
AuthorPosts
- You must be logged in to reply to this topic.