- Impact
- 100
Guys, does anyone know how to re-direct domain name to its sub-domain? I mean, http://sample.tld/ and http://www.sample.tld/ must forward users to http://subdomain.sample.tld/ Any clue?
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteRule ^ http://sub.domain.com [R,L]