0

We are working on migration project where we are migrating from legacy CMS system to Sitecore 8.2 and we are migrating around 300 pages to Sitecore

One of the requirement where we have is to Redirect users accessing some of the URL's from this external system to new system when this new System goes live.

Redirection would be something like this
Legacy URL : http://old_domain/en/press/pressreleases/10-16-2017/XXXXXXXXXXXXXXXXXXXX

New URL : http://new_domain/en/press/PressReleases/2017/October/XXXXXXXXXXXXXXXXXX.

Can some body guide me how do i do this.

1

As Mark has said the Sitecore URL rewrite module is what is recommended for this:

https://marketplace.sitecore.net/Modules/Url_Rewrite.aspx https://github.com/iamandycohen/UrlRewrite

This module is similar to IIS rewrite rules and supports regex etc, however the re-write rules exist in Sitecore instead of in a web.config / redirects file.

I've used this before to great success as it is pretty flexible so should handle most scenarios. It also gives content editors visibility over what rules are in place which is much better than something hidden away that they can't see.

I also developed a tool for importing a spreadsheet that contained the old an new urls and it auto-created the re-write url items for you. This saves a lot of time and user error when there are lots of urls to re-write. It supported multi-site too.

I will perhaps look to re-work it and make it available on the marketplace/github if this is something that would be useful to others.

| improve this answer | |
  • My question if redirection has to be done from legacy system which is in other domain how could rules be placed in new domain as request will first go to legacy system and from there redirection will happen. – user2332873 Apr 18 '18 at 15:34
  • Also to test we would need test instance of legacy system so that rules could be tested before we go live – user2332873 Apr 18 '18 at 15:36
  • 1
    So what you would normally do is point the old domain at Sitecore at the point of switchover (lets say www.myolddomain.com) and then the re-write rule in sitecore will look for www.myolddomain.com/my-url-1 and will be setup to re-direct to: www.mynewdomain.com/myurl1. Make sense? – Adam Seabridge Apr 18 '18 at 15:37
  • to test this you could just setup an test host entry on a dev environment with sitecore installed and your old cms system and check everything works before deploying to UAT/Prod – Adam Seabridge Apr 18 '18 at 15:39
  • Got it but point of switch over is on the day of go live to test this do we need to point the QA domain of legacy system to QA instance of Sitecore. – user2332873 Apr 18 '18 at 15:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.