Rewrite vhost.conf

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


RewriteCond %{HTTP_HOST} !^www .domain.com$
RewriteCond %{HTTP_HOST} ^(www\.)?(([^\.]+)\.)domain.com$
 
Last edited:
#3
I write space in the post because, form didnt accept. It said, remove links :)

I find new issue. When I visit to test.domain.com, browser show to me www .domain.com/index.php but when I try to visit test.domain.com/blabla.php i can see correct page.

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! :)
 
Top