we have change our domain name from old.com to new.com and put a new ASP MVC 4 web site on old.com
Because search engine still point to old.com we would like to redirect some urls to the new one.
What is the possible ways to tap into ASP MVC pipeline to respond with redirect answer?
Thank you, Ido.Answer1:
The HTTP response status code 301 Moved Permanently is used for permanent redirection.
Google recommends using a 301 redirect to change the URL of a page as it is shown in search engine results.</blockquote>
According to this question <a href="https://stackoverflow.com/questions/2175975/asp-net-mvc-301-redirect-from-www-domain-com-to-domain-com" rel="nofollow">here</a> you have 2 options:<ol><li>
Installing the HTTP Redirect feature in IIS7.</li> <li>
Do redirection at application level (using Application_BeginRequest at Global.asax).</li> </ol>Answer2:
If the only thing that has changed is the domain name, why not just use IIS to set up a permanent site redirect from old to new instead of using MVC?