Disable Litespeed Cache for File Protection to work on WPX Hosting

WPX Hosting is a managed WordPress hosting provider that utilizes Litespeed server.

This server is using Litespeed cache that prevents our PDA file protection from working properly on your websites.

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

  • Go to our _pda folder located under wp-content/uploads/
  • Add this following code on top of your .htaccess file
RewriteEngine On
RewriteRule (.*\.\w+)$ /index.php?pda_v3_pf=/_pda/$1 [QSA,L]
SetEnvIf Request_URI wp-content/uploads/_pda NOCACHE
Header always set "Cache-Control" "no-cache" env=NOCACHE

That’s all you have to do. Now, all your files should be protected correctly with our PDA Gold.

Lasted updated on August 19, 2020