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.
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.
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
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.
Nope, not that I have found (and this is a recurring forum topic). looks like you did the right thing.
Okey dokey... Will publish as a package.
is working on a reply...