htaccess Redirect Subdomain To Main Domain

May 30, 2017 

I know there are a lot of threads like this. Google is full of related articles too… but I cannot understand how to solve my problem.

So,

I want to redirect all subdomains to my main domain. For example:

http://us.example.com/http://example.com
http://ca.example.com/http://example.com
etc

Can you show me the correct code to use in htaccess?

Thanks

Category : Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *