LiteSpeed is a web server developed by LiteSpeed Technologies, which is an alternative to the Apache web server and is compatible with its most common features like .htaccess and mod_rewrite
... First of all, LiteSpeed is interesting because it allows you to speed up the work of sites by using specialized plugins for various CMS... These plugins provide integration with LiteSpeed Cache (LSCache).
It comes in two flavors - the open source version of OpenLiteSpeed and the paid version of LiteSpeed Enterprise. The hosting uses the first option - OpenLiteSpeed, which has a number of differences from the paid version:
The LiteSpeed web server has certain features and is different from the Apache web server. That is why it does not support some of the Apache features that you have to drop in order to use it.
Features:
mod_security
.LiteMage
.Rewrite
(Besides RewriteBase
) and the directive Option +SymLinksIfOwnerMatch
... All other directives will be ignored.Rewrite
were correctly processed by the LiteSpeed web server, they need to be changed in accordance with instruction... For example, a rule for Apache that looks like this:RewriteRule ^example/(.*)$ another/example/$1 [L]
Within LiteSpeed it should look like this:
RewriteRule ^/?example/(.*)$ another/example/$1 [L]
Unlike Apache, in LiteSpeed, rules must clearly indicate a specific directory from where or where the redirect will be made. At the beginning of directories or file names, you need to set /
to set the starting root position.
IfModule
... Example:<IfModule LiteSpeed> RewriteCond %{REQUEST_URI} ^/example/$ RewriteRule ^.*$ http://%{HTTP_HOST}/another/example/ [R=301,L] <IfModule>
To activate LiteSpeed, do the following: