In the Settings section, for the Document Type for "news-media", create a new property of type ContentPicker, with the alias umbracoInternalRedirectId. See example image:
Then in your Content section, for your "news-media" node, select the "news" page for the umbracoInternalRedirectId value. See example image:
This should make sure that when someone browse the "news-media" node, they will be automaticly redirected to "news".
The umbracoInternalRedirectId property will not change the URL when it redirects, thereby leaving it /news-media. If you want the URL to change to /news-media/news, then use the umbracoRedirect alias instead, but still with a Content Picker.
Just to add my 2 cents, the umbracoRedirect alias does a 302 redirect which might not be what you want. If you need a 301 redirect, your best option is IIS URL Rewrite
Umbraco 7 redirect internal page
Hi, i am new to umbraco, and have a small problem, with redirect.
i have a parent page " news-media" with two sub pages "news" & "media".
when i press "news-media" i would like to redirect to "news".
"news-media" is an empty page.
but haven't been able to figure out a way to do this..
any help would be greatly apreciated.
Hi André.
In the Settings section, for the Document Type for "news-media", create a new property of type ContentPicker, with the alias umbracoInternalRedirectId. See example image:
Then in your Content section, for your "news-media" node, select the "news" page for the umbracoInternalRedirectId value. See example image:
This should make sure that when someone browse the "news-media" node, they will be automaticly redirected to "news".
The umbracoInternalRedirectId property will not change the URL when it redirects, thereby leaving it /news-media. If you want the URL to change to /news-media/news, then use the umbracoRedirect alias instead, but still with a Content Picker.
Best of luck to you!!
If you are interested in reading more, see: https://cultiv.nl/blog/umbraco-tip-of-the-week-redirects/. Its an old article, but it still works the same. :)
Fantastic answer, Dennis.
Just to add my 2 cents, the umbracoRedirect alias does a 302 redirect which might not be what you want. If you need a 301 redirect, your best option is IIS URL Rewrite
Cheers!
that works perfectly.
Thank you, for the detailed answer :D
Thank you André! Have a great day!
is working on a reply...