Reputation: 749
We are rebuilding an existing legacy system using MVC4 and Sitecore 7. We however would still like to keep some legacy pages (.chm files which have been bookmarked). I would like to do a 301 redirect of some of these pages using MVC4 in Sitecore.
I googled around and found that in just MVC this could be achieved using this article "http://www.eworldui.net/blog/post/2008/04/ASPNET-MVC---Legacy-Url-Routing.aspx"
However, I am struggling to find how the 301 Redirect would fit in Sitecore MVC implementation ?
If experts could help by providing steps needed to achieve this with pseudo code, that will be greatly appreciated.
Upvotes: 1
Views: 1718
Reputation: 31435
There's a Sitecore 301 Redirect Module that can do that: http://marketplace.sitecore.net/en/Modules/301_Redirect_module.aspx
If you need source code, that's here: https://github.com/thecadams/301RedirectModule
Upvotes: 2