Actions

Help

Rewrite Rule Differences

From OpenLiteSpeed Wiki

Revision as of 22:43, 11 December 2014 by Marmstrong (talk | contribs)

For rewrite rules, OpenLiteSpeed uses the same syntax as Apache's mod_rewrite. Apache rewrite rules can be copied and pasted into OpenLiteSpeed's Rewrite Rules field (WebAdmin > Configuration > Virtual Hosts > your virtual host > Rewrite > Rewrite Rules).

It should be noted, though, that Apache mod_rewrite syntax is slightly different when a rewrite rule is in an .htaccess file as opposed to an httpd.conf file. OpenLiteSpeed rewrite should be written in this httpd.conf syntax. If you are copying a set of rewrite rules from an Apache .htaccess file to OpenLiteSpeed, use the following guidelines to edit the rules.