Rewrite vhost.conf

Discussion in 'General' started by hystrix, Jan 9, 2010.

  1. hystrix

    hystrix New Member

    I used rewrite subdomain with apache but its not work with lsws.
    Anyone can help?

    RewriteCond %{HTTP_HOST} !^www$
    RewriteCond %{HTTP_HOST} ^(www\.)?(([^\.]+)\.)$
    Last edited: Jan 11, 2010
  2. NiteWave

    NiteWave Administrator

    have reproduced the "issue" on our lab, and finally get it to work ...

    there is a typo in
    remove the space after "www", the rewrite rule works! :)
  3. hystrix

    hystrix New Member

    I write space in the post because, form didnt accept. It said, remove links :)

    I find new issue. When I visit to, browser show to me www but when I try to visit i can see correct page.

  4. mistwang

    mistwang LiteSpeed Staff

    Why you put "{1}" there? it is not a valid rewrite variable.

    Maybe your browser cached the page. Turn on rewrite log and check the log file.
  5. hystrix

    hystrix New Member

    Thanks, its working now :)


Share This Page