Is it possible to remap links from one page to another?

Vote:
 

Have a client who has created a new page and wants to use it to replace an existing page, but the existing page has quite a lot of links to it.

I know if you move to delete the page it will tell you what links to it, but it doesn't offer any functionality to redirect those existing links to another page similar to what they have in Sitecore.

Does anyone know if there is a plug-in / add-on for remapping links from one page to another? Or existing functionality I'm perhaps not aware of?

Unfortunately the site is hosted on the Episerver Cloud platform so we don't have direct access to the database to resolve it via SQL scripts either.

#249830
Mar 10, 2021 14:13
Vote:
 

2 ways

1. Out of the box in the settings tab there's redirect functionallity. You can select shortcut to another page to redirect as a 301

2. You can intall the Geta redirect plugin to redirect links from one page to another as 301 https://github.com/Geta/404handler this is often use for expiring pages that have been moved to another page in the URL structure

Personally I'd use the geta plugin as it allows a granular easy to use global view of 301 redirects as with the first option you have to leave the content node in the site structure which you do not with the second option.

#249844
Edited, Mar 10, 2021 16:49
Vote:
 

Third option: if the new page is of a different pagetype, use the pagetype-converter tool in admin mode and convert the old page to the new pagetype. The page will keep it's content id, and all internal links will still work.

#249849
Edited, Mar 10, 2021 20:00
Vote:
 

I've no idea if the client is using a new page type at the minute but he has already created a new page and wants to replace the existing page with it (so same URL) but doesn't want all the internal links to break. I also don't why he didn't make his edits to the existing page or use the projects functionality, he's only contacted us after the fact, so the goal is to avoid him have to recreate his page but not have to manually remap all the links to it.

I'd rather avoid any visible redirects but might test that option to see if Episerver handles that internally, but the intention would be to delete the old page so it would not be ideal having to preserve it just for the redirect.

#249912
Mar 11, 2021 16:17
Vote:
 

You could write a little admin tool to use the SoftLinksRepository. Then you can find all links to a content type programmtically and remap them to the other type, shouldn't be to much code to write. 

#249915
Mar 11, 2021 17:10
Scott Reed - Mar 11, 2021 17:12
The only thing that will make this complex is links in any XHtmlString properties as you'll have to update the Html Fragments
Vote:
 

Hi @Scott, do you mind show me how can I get to settings tab to perform some redirect functionallity? is it that available only in Episerver or insite too? 

#251074
Mar 22, 2021 2:40
Scott Reed - Mar 22, 2021 8:32
It's in the CMS system. You just click the manage shortcut link in the settings tab and follow guidance I've given in my first comment
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.