1

I've so many links in different website for a particular page in sitecore. I want to allow Editors to configure the redirection for that particular Item to a new page.

What is the best way of doing this?

2 Answers 2

2

You can use redirect module : https://marketplace.sitecore.net/Modules/301_Redirect_module.aspx?sc_lang=en

Github repository where you can get the code and to modify it: https://github.com/Chris-Castle/301RedirectModule

On the redirect module you have the option to create rules for redirecting your requests to other landing pages.

enter image description here

3
  • Are these redirects site specific tho? in a multi site solution? (different domain names)
    – Jay
    Commented Mar 26, 2020 at 11:32
  • nope are not to site specific. Commented Mar 26, 2020 at 16:06
  • Thanks, We are using URL Re-write module by Andy Cohen and I just found out that it has a site specific configuration, which is awesome.
    – Jay
    Commented Apr 3, 2020 at 9:34
0

If you need to do some custom logic during the redirect process you can consider creating a controller rendering with a template that contains the link to redirect too. Then content editors can create items based on the redirect template.

If you need redirection on an existing page you could create a base template containing the redirection link and inherit the base template on the applicable page templates. Content editors might need to manually attach the controller rendering to presentation details in this case.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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