H hystrix New Member Jan 9, 2010 #1 Jan 9, 2010 #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: Jan 11, 2010
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$
N NiteWave Administrator Jan 11, 2010 #2 Jan 11, 2010 #2 have reproduced the "issue" on our lab, and finally get it to work ... there is a typo in RewriteCond %{HTTP_HOST} !^www .domain.com$ Click to expand... remove the space after "www", the rewrite rule works!
have reproduced the "issue" on our lab, and finally get it to work ... there is a typo in RewriteCond %{HTTP_HOST} !^www .domain.com$ Click to expand... remove the space after "www", the rewrite rule works!
H hystrix New Member Jan 11, 2010 #3 Jan 11, 2010 #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. NiteWave said: 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! Click to expand...
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. NiteWave said: 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! Click to expand...
M mistwang LiteSpeed Staff Jan 11, 2010 #4 Jan 11, 2010 #4 RewriteCond %{HTTP_HOST} ^(www\.)?(([^\.]+)\.){1}domain.com$ Click to expand... 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.
RewriteCond %{HTTP_HOST} ^(www\.)?(([^\.]+)\.){1}domain.com$ Click to expand... 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.
H hystrix New Member Jan 11, 2010 #5 Jan 11, 2010 #5 Thanks, its working now mistwang said: 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. Click to expand...
Thanks, its working now mistwang said: 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. Click to expand...