Disable Litespeed Cache for Sitewide Protection to work on WPX Hosting

WPX Hosting is a WordPress optimized hosting provider that uses Litespeed server.

This server is using Litespeed cache that prevents our PPWP sitewide protection feature from functioning properly on your websites.

In order for our plugin to work with WPX hosting server, you will need to implement our rewrite rules to clear Litespeed cache. Here’s how:

Simply put this rule on top of your .htaccess. You can password protect the entire site or partial content by changing the rules accordingly.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} "/?"  [NC,OR] #exclude all pages
RewriteCond %{REQUEST_URI} "/sample-page/"  [NC,OR] #exclude sample-page from caching
RewriteRule ^  - [E=nocache:true]
Header always set Cache-Control "no-cache" env=nocache
WordPressProtect captcha, 2
Lasted updated on May 8, 2020