Copied to clipboard

Flag this post as spam?

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


  • Rob Carlaw 21 posts 134 karma points
    Jul 08, 2019 @ 15:51
    Rob Carlaw
    0

    Umbraco 8 - Any current packages for URL Redirects

    I have a client which currently have loads of web pages on the current non umbraco website. The url's do not match directly to the new umbraco 8 Url's - so to try and maintain the SEO ranking I have to do 100s of 301 redirects .

    Old URL -> 301 redirect -> Shiny new Umbraco 8 page

    What is the best package for this or way of doing it?

    Simple 301 isn't supported on U8 which is one I've used in the past. SEO Check is a paid for package and I don't really have the budget for it.

    Anyone recommend a way forward?

    Thanks

  • Marc Goodson 969 posts 6434 karma points MVP 4x c-trib
    Jul 08, 2019 @ 22:37
    Marc Goodson
    1

    Hi Rob

    It depends on how they differ between the old and new systems

    and where the site is hosted.

    If there is a 'pattern' to the change, then usually the best approach is to setup an IIS Redirect Rule in the site's web.config

    https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

    You can use regular expressions to match the pattern, negate etc to issue a 301 to the new url.

    If it's a one off list of urls to redirect - that map to a list of new urls - with no pattern - and there is no need for editors to edit them, or add new ones - then the quickest way is to create the redirects is to use a static redirect map file:

    https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-rewrite-maps-in-url-rewrite-module

    in your web.config:

    <rewrite>
      <rewriteMaps configSource="customrewritemaps.config" />
    

    and then in your external file literally all the redirects, if your clever with MS Excel you can generate this from a spreadsheet...

    <?xml version="1.0"?>
    <rewriteMaps>
      <rewriteMap name="Redirects">
        <add key="/blog" value="/the-new/blogs/" />
        <add key="/products/thing/" value="/new-products/thing" />
    

    Finally if editors need to add these redirects from time to time, there is an excellent redirects package called Skybrud Redirects, that allow editors to manage redirects - it isn't fully released for V8 yet - but there is an alpha release here, that they may welcome help in road testing:

    https://github.com/skybrud/Skybrud.Umbraco.Redirects/releases/tag/v2.0.0-alpha002

    regards

    Marc

  • Bjarne Fyrstenborg 1140 posts 3225 karma points MVP 3x c-trib
    Jul 09, 2019 @ 06:48
    Bjarne Fyrstenborg
    1

    Hi Rob

    Umbraco handle 301 redirects, when renaming node names, but doesn't have a built-in way to handle manual 301 redirects.

    In some cases you might want to add IIS rewrites (rewrites and redirects) in web.config, but Anders Bjerner has also created an awesome package to manual add redirects, which work well in combination with to Umbraco core auto-created redirects:

    The package Skybrud.Umbraco.Redirects is now also available for Umbraco v8 in an alpha version: https://www.nuget.org/packages/Skybrud.Umbraco.Redirects/2.0.0-alpha003

    /Bjarne

Please Sign in or register to post replies

Write your reply to:

Draft