Copied to clipboard

Flag this post as spam?

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


  • Anders Burla 2560 posts 8256 karma points
    Aug 19, 2010 @ 14:11
    Anders Burla
    0

    umbracoRedirect doing it wrong

    Why is umbracoRedirectreturning a 302 and not a 301? It should in my view do a 301

  • Kim Andersen 1447 posts 2196 karma points MVP
    Aug 19, 2010 @ 14:50
    Kim Andersen
    1

    I don't think it's a bug Anders. As far I know the umbracoRedirect has always been 302 redirect.

    But I do aggree with you. It's would be a good idea to put an option of a 301 redirection into the core of Umbraco. It could be great to have something like the Permanent Redirect package build in. Makes good sense in my opinion.

    /Kim A

  • Anders Burla 2560 posts 8256 karma points
    Aug 19, 2010 @ 15:00
    Anders Burla
    0

    @Kim yes that package is the solution - but why not just correct it in umbraco 4.5.2 that will be released shortly? Ist a small thing to correct i could imagine and would do it my self if i did know how to get access to the source and commit changes ( any core members that can help with that? )

  • Sascha Wolter 615 posts 1101 karma points
    Aug 21, 2010 @ 01:17
    Sascha Wolter
    1

    Agree with Kim that it would be nice to have the option of a permanent or temporary redirection when using umbracoRedirect property.

    Yet I think the 302 is actually the right one here: as you can set it to a different page whenever you feel like it in the CMS it is actually not a permanent redirect, it might just be temporary or not a redirect at all if you delete the value. So it would be odd to tell a search engine that the Url has been permantently redirected yet when it checks back (if it does that) it will find new content which hasn't been properly indexed because it was marked 'permanent redirect'.

    Anyway, had to write a custom 301 status changer for redirects for a previous project so would appreciate to get the option. Yet with the option it's probably not that simple a change.

    Cheers,
    Sascha

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 31, 2011 @ 11:43
    Jan Skovgaard
    0

    Hi guys

    Just had to find out if it was a 302 or 301 redirect and thanks to this post it got settled :-) I've updated the wiki entry about the umbracoRedirect property to mention this: http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracoredirect

    Cheers.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft