Enable LItespeed Cache for non wordpress sites or any type of sites

NOTE: - Litespeed Cache works only Litespeed web server and LSCache activated servers However our Shared Hosting comes with LScache so you have to don't worry about extra charges of it's free with us!

It's too easy just login into your FTP account or file manager for cPanel users
and add this code to your site's .htaccess file
 

rewrite rules Example:
Cache all URLs for 2 mins excluding ''/administrator'' URLs

 
########## Begin - Litespeed cache
<IfModule LiteSpeed>
  RewriteEngine On
  CacheDisable public /
  RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
  RewriteCond %{ORG_REQ_URI} !/administrator
  RewriteRule .* - [E=Cache-Control:max-age=120]
</IfModule>
########## End - Litespeed cache
 

and save it

to verify Litespeed cache is working or no
simple
visit
http://www.webconfs.com/http-header-check.php
  • litespeed, Litespeed cache
  • 8 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

How to Change Name Servers in GoDaddy

While Royal Clouds cannot modify name servers at third-party registrars on your behalf, we can...

How To install Litespeed Cache for WordPress

Litespeeds LScache for Wordpress outperforms every other Wordpress cache we have tested. Not only...

Which Payment Methods Royal Clouds accept?

Hello,currently, we are accepting payments from mostly all the methods which are available online...

What Is VPS?

VPS (Virtual Private Server) hosting plans give you your own dedicated environment with all the...

What is the MySQL hostname?

When configuring your script, it will most likely ask you what the MySQL hostname is.  Please...