Some Questions & Help

Discussion in 'General' started by paulipv, Jan 31, 2010.

  1. paulipv

    paulipv New Member

    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?
  2. mistwang

    mistwang LiteSpeed Staff

    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.
  3. paulipv

    paulipv New Member

    I tryed your rule.
    Not working.
  4. mistwang

    mistwang LiteSpeed Staff

    Then you have to put the rewrite rule under the document root of the sub-domain.

Share This Page