How to redirect from Old Service portal URL to New Servcie Portal URL?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 06:19 AM
Hi Team,
We decommissioned old service portal and we need to redirect the links from Old service portal to new Service portal.
End users book mark the Old Service portal links, if he clicks on that ols service portal links, it should redirect to New service portal.
How It is possible. Please provide solution for the same.
Thanks & Regards,
Prasanna Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 06:46 AM
I've seen a few options here, none of them perfect.
- You could just rename the url suffix of the new portal to match that of the old portal so that the links are still valid.
- If you're using different pages you can use page route maps to route from the old page to the new page.
- If the pages are the same and it's just the service portals that are different you could write some client side js in a widget and add it to all of your pages that looks at the url onload and then redirects the user if they're using the old portal. Unfortunately I don't have any examples here.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 07:47 AM
Thank you Brad for quick reply.
Actually, the old page is CMS page and need to redirect to Portal page. So, I've updated by using the below steps:
- Navigate to the CMS 'home' page.
- Under the Layout field if it's using the OOB layout it should be the "CMS 1 Column". Click on the "i" icon to go to that UI macro.
- At the bottom of the XML script, but before the </j:jelly> part, put the below code
<script>
window.location.replace("/the_sp_suffix")
</script>
It works for me.
Thank you for your help as well.