'redirect pages from Umbraco site to external web pages

I have a Umbraco website.

I want to use the same Umbraco site and need to redirect about 10 pages to a external pages including the home page.

I think we have Umbraco 6.2

Please, can you tell me how to do this?

I do not know if it is a code change or a settings change.

I appreciate if you can advise.

Thank you!



Solution 1:[1]

Umbraco 6.2 is a very old version and If you have the chance to remake the site in a newer version I would strongly recommend this as it is far out of support range. Current documentation doesn't even go back that far (7 -> 9)

That being said, the quickest way to not touch the code base at all and "just" make the redirects work. Is the use the fact that Umbraco sites rely heavily on IIS hosting. You can edit the web.config file and tell IIS that when a certain url is hit, to return a redirect.

Here is some Official documentation from microsoft: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Migaroez