I need some help with redirecting in umbraco.7.0
I had created a datatype with a simple textbox. and also a simple template with the following code. But it only redirect in Google chrome not in explorer, firefox, what have i doing wrong?
@inherits UmbracoTemplatePage
@{
Layout = null;
var redirectUrl = Model.Content.GetPropertyValue<string>("externalURL");
if (!string.IsNullOrWhiteSpace(redirectUrl))
{
Response.Clear();
Response.StatusCode = 301;
Response.StatusDescription = "Found";
Response.RedirectLocation = redirectUrl;
Response.End();
}
I don't think it's the reason, but a 301 redirect should have the text "Moved Permanently" associated with it — "Found" usually goes with a 302 redirect...
Redirect to external page umbraco 7.0
Hi
I need some help with redirecting in umbraco.7.0 I had created a datatype with a simple textbox. and also a simple template with the following code. But it only redirect in Google chrome not in explorer, firefox, what have i doing wrong?
@{ Layout = null;
}
Hi Klaus,
I don't think it's the reason, but a 301 redirect should have the text "Moved Permanently" associated with it — "Found" usually goes with a 302 redirect...
/Chriztian
is working on a reply...