Copied to clipboard

Flag this post as spam?

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


  • Fatiha 2 posts 82 karma points
    Jan 18, 2021 @ 15:31
    Fatiha
    0

    New domain name - redirect all URL's from old to new domain.

    Hello,

    We will change the domain name of our Umbraco site. My question is are all the URL's of the site rediected automaticly, or do we have to do a manipulation first, or we have to change it manually?

    Do we have to use 301 URL tracker? https://our.umbraco.com/packages/developer-tools/301-url-tracker/

    Thank you for your help.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Jan 18, 2021 @ 17:18
    Alex Skrypnyk
    0

    Hello Fatiha

    All URLs generated by the CMS will change automatically. But, all URLs that were indexed by search engines would not change by your switch.

    To update all indexed links, you have to add 301 redirects from the old domain to a new one.

    The best way to do it is by using IIS Rewrite rules.

    Btw, will you keep hosting the old domain name?

    Thanks, Alex

  • Amir Khan 1282 posts 2739 karma points
    Jan 18, 2021 @ 18:04
    Amir Khan
    100

    To elaborate on what Alex said. Its actually pretty straightforward and there are really only two steps on the Umbraco if the path after the domain isn't changing. You'll also want to update search console to notify Google of the change.

    1. Update the cultures and hostnames on the home node to include the new domain.

    2. Use a redirect rule like this to 301 redirect so search engines know the site has moved. This will force https and remove www but you may not need the first two rules if you don't want that part.

    The editor is stripping out the code, but here's a gist: https://gist.github.com/amirkhan81/89eb6783c57bbf9d0750a48302576e0b

  • Fatiha 2 posts 82 karma points
    Jan 21, 2021 @ 22:06
    Fatiha
    0

    Thank you for your fast answer. We will do this, and I 'll back to you if any issues.

Please Sign in or register to post replies

Write your reply to:

Draft