Hi everyone, i used following rules to make subdomain. RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC] RewriteCond %{HTTP_HOST} ^([a-z0-9]+)\.domain\.com RewriteRule (.*) profile.php?user=%1 [L,QSA] it's working perfect but my real 2 subdomains not working any more. Please help! Advance thanks
Yes.. Your rewrite code settings will be redirecting all subdomains... Please check this rewrite code RewriteCond %{HTTP_HOST} ^([a-z0-9]+)\.domain\.com
Thanks for reply, i got another problem. my index page is not working. When i am opening domain. It's showing me profile.php page. Please help!