Copied to clipboard

Flag this post as spam?

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


  • Paul Marden 235 posts 338 karma points MVP 2x c-trib
    Sep 23, 2009 @ 12:56
    Paul Marden
    0

    301 Permanent Redirect

    I know that if I add umbracoRedirect as a field on a Document Type and give it a Content Picker type then the resulting nodes when loaded will redirect to the selected target node.  However, this does a 302 FOUND, temporary redirect.  I want to issue a 301 Moved Permanantly redirect.  Is there a similar internal command for this?

    I've resorted to creating a Usercontrol to do this, but I'm not sure if I've done work for work's sake.

  • dandrayne 1138 posts 2262 karma points
    Sep 23, 2009 @ 14:33
    dandrayne
    0

    You could use a content picker, give it a different alias, then use an xslt macro to do the permanent redirect.  A big step in the right direction is here -> http://forum.umbraco.org/yaf_postst7975_Server-side-XSLT-redirection.aspx

  • Paul Marden 235 posts 338 karma points MVP 2x c-trib
    Sep 23, 2009 @ 15:26
    Paul Marden
    0

    I've done much the same thing but with a Usercontrol Macro instead.  Just wondered if there was something in the core that does this.

  • dandrayne 1138 posts 2262 karma points
    Sep 23, 2009 @ 16:09
    dandrayne
    0

    Nope, not that I have found (and this is a recurring forum topic).  looks like you did the right thing.

  • Paul Marden 235 posts 338 karma points MVP 2x c-trib
    Sep 23, 2009 @ 16:33
    Paul Marden
    0

    Okey dokey... Will publish as a package.

Please Sign in or register to post replies

Write your reply to:

Draft