This is an old revision of the document!
IfDefine/IfModule, LiteSpeed acts differently than Apache
On Apache, sometime you may use ''IfDefine'' or ''IfModule'' to mark directives that are conditional. For example:
<IfDefine NothingInParticular> RewriteRule (.*) https://google.com [R=301,L] </IfDefine>
LiteSpeed doesn't support such conditional checking and will assume everything is defined or every module exists hence the directives enclosed within IfDefine
or IfModule
will be always executed on LiteSpeed, which is different than Apache's conditional checking behavior.
Due to the implementation difference, IfDefine
or IfModule
is not recommended to use at all.
If you did use them already and still want a workaround to bypass them on LiteSpeed, you can manually add NothingInParticular
(should be replaced by your particular definition or module name) to " Ignore Apache Modules" to ignore the module/definition.