Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Per Bolmstedt 84 posts 380 karma points
    Feb 08, 2022 @ 08:21
    Per Bolmstedt
    0

    Create redirects when changing URLs via character replacements

    We're about to change the URL character replacements (using the request handler configuration) on a site with a lot of content. This will change the URLs for ~50% of the content on the site.

    As we understand it, Umbraco will not automatically redirect from the current URLs to the new URLs. And this will mean 404s for all affected content, and massive search engine damage.

    For example,

    /products/old_hats/really_öld_hat

    will change to

    /products/old-hats/really-old-hat

    How would you go about creating redirects from the current URLs to the new URLs?

    • Is there any way to do it automatically?
    • Could we trigger "renames" somehow to make Umbraco add "old URLs" for us?
    • Could we inject stuff into the umbracoRedirectUrl table to add the current URLs as "old URLs" for affected content? Is there an API for this?
    • Would it be easier to solve using a third-party package like Simple Redirects somehow?
    • Is it correct that the current URLs will 404 when changing the request handler character replacements?
  • Per Bolmstedt 84 posts 380 karma points
    Feb 18, 2022 @ 15:41
    Per Bolmstedt
    100

    After some testing, it seems Umbraco automatically creates redirects when changing the character replacements. So this turned out to be a non-issue, everything was handled automatically via automatic redirects.

Please Sign in or register to post replies

Write your reply to:

Draft