Some Questions & Help

#1
We have installed trial of litespeed on our servers for testing before purchase.

1. How to do a subdomain to folder rewrite?
rewritecond %{HTTP_HOST} ^(www\.)?subdomain\.domain\.com
RewriteRule .* folder/index.php [L]

Rule work on apache, not working on litespeed.

2. Is posible to import vhosts from apache to see them on litespeed?
 

mistwang

LiteSpeed Staff
#2
For the rewrite rule, there are subtle difference between Apache and LSWS in this case, You can try

rewritecond %{HTTP_HOST} ^(www\.)?subdomain\.domain\.com
RewriteRule .* /index.php [L]

or move the rule to the document root of the subdomain.

If you use LiteSpeed with hosting control panel for Apache, you have to change the apache httpd.conf, not possible to change configuration in LSWS.
 
Top