i am trying to implement sub domains through .htaccess files.
i have written following code which works in apache 2.0 but doesn't work in apache 1.3. can any1 help me?
and the problem is with hyphens only. if i replace hyphen with underscore or remove hyphen it will work properly. so, problem is with sub domainname with hyphen in apache 1.3.
pls help me.
RewriteEngine on
RewriteCond %{HTTP_HOST} !www.buddyslim.com?$
RewriteCond %{HTTP_HOST} www.calorie-counter(.).buddyslim.com?$
RewriteRule (.)$ foodexercise/calorie-counter.php [QSA,L]