Forum Moderators: phranque
Let's say that I own the domain: xyz.com.
I want to redirect from a fake subdomain, such as:
[mywebsite.xyz.com...] to [xyz.com...]
[anotherexample123.xyz.com...] to [xyz.com...]
I also want it to ignore the subdomains:
www , cdn , uploaded
as they're my website reserved subdomains.
How do I do that with htaccess file?
thanks!
Thanks,
Jim
RewriteCond %{HTTP_HOST} !^(www¦cdn¦uploaded)\.example\.com
RewriteCond %{HTTP_HOST} ^([^.]+)\.example.com
RewriteRule ^(.*)$ /resolver.php?id=%1 [L]
Jim