I had my Umbraco installation in a subdomain while the site was under development. Google indexed it somehow and now I have links in the Google index to the subdomain. I want to redirect traffic from the subdomain to the root domain with a 301 result code.
One approach would be to create a rewrite rule using IIS, something like below, which should 301 redirect any non www.yourdomain.com traffic to www.yourdomain.com
redirect from subdomain to root domain
I had my Umbraco installation in a subdomain while the site was under development. Google indexed it somehow and now I have links in the Google index to the subdomain. I want to redirect traffic from the subdomain to the root domain with a 301 result code.
What would be the best way to do this in Umbraco?
Thank you!
Hi Elad,
One approach would be to create a rewrite rule using IIS, something like below, which should 301 redirect any non www.yourdomain.com traffic to www.yourdomain.com
Taken from this blog post: URL Rewriteing and SEO
Hope this helps,
Tom
is working on a reply...