Copied to clipboard

Flag this post as spam?

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


  • Lewis Smith 211 posts 620 karma points c-trib
    Jul 06, 2017 @ 13:20
    Lewis Smith
    0

    Redirect on Umbraco 7.2

    I've inherited a Umbraco website running Version 7.2 and need to redirect a few pages as some pages have been deleted and users are still landing on them. How is this done?

    • there is no page created for the page i want to redirect from so i cant add a url there.
    • A new website is being created to update to the latest version.

    Thanks!

  • Nik 1625 posts 7295 karma points MVP 7x c-trib
    Jul 06, 2017 @ 15:26
    Nik
    0

    The easiest way would be with IIS assuming you have access. Alternatively, you can put the rewrite rules into your web.config. I believe that should work.

  • Lewis Smith 211 posts 620 karma points c-trib
    Jul 06, 2017 @ 15:56
    Lewis Smith
    0

    Thanks, I knew about the web.config but was just wondering if i was missing something in the umbraco login as im aware this is possible for 7.4 +.

    How would i do this through the IIS?

    Thanks

  • Nik 1625 posts 7295 karma points MVP 7x c-trib
    Jul 06, 2017 @ 16:22
    Nik
    0

    Yeah, in the later version of Umbraco there is a redirect tool, however there is no (at least not that I'm aware of) way of putting your own redirects in there.

    With IIS, you have a couple of options, if you are doing a bulk and don't need rules you could use the rewrite map option combined with a rule that performs the look up.

    If you open IIS and select your site there should be an option for "URL Rewrite" where you can create maps and rules. These do end up saved into your web config so you might want to create the first one, then extract it into a separate file to save webconfig getting too large (I always do it that way instead of the separate file first).

  • Lewis Smith 211 posts 620 karma points c-trib
    Jul 06, 2017 @ 16:23
    Lewis Smith
    0

    Okay perfect, i will be doing this tomorrow so if i get any questions am i okay to reply on here?

    Thanks

  • Nik 1625 posts 7295 karma points MVP 7x c-trib
    Jul 06, 2017 @ 16:24
    Nik
    0

    Of course, that is exactly what this forum is for :-) we are all here to help.

  • Victor 25 posts 146 karma points
    Jul 06, 2017 @ 17:19
    Victor
    0

    Take a look in the plugin Simple 301 - Redirect Manager, it is more easier. You simple create a entry with the old url and tell to which url it should redirect to.

    https://our.umbraco.org/projects/backoffice-extensions/simple-301/

  • Lewis Smith 211 posts 620 karma points c-trib
    Jul 07, 2017 @ 08:11
    Lewis Smith
    0

    I will get take a look to see if this is compatible with 7.2!

    Thanks

  • Paul Seal 524 posts 2890 karma points MVP 7x c-trib
    Jul 07, 2017 @ 11:42
    Paul Seal
    100

    Hi Lewis You can use the urlrewriting.config file to put permanent redirects in.

    See my post about it.

    http://www.codeshare.co.uk/blog/how-to-create-url-rewrite-rules-in-umbraco/

  • Lewis Smith 211 posts 620 karma points c-trib
    Jul 07, 2017 @ 12:10
    Lewis Smith
    0

    Hi Paul,

    I have actually read that before! And watched a few of your videos!

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft