Umbraco - C# - Redirect a Umbraco Page to an external web site.
Umbraco - C# - How to Redirect a Umbraco Page to an external web site. Two create a redirect from a Umbraco page to an exteral site you need to: (this is very simple) Step 1) Add the page to Umbraco that you want to rediect. (You may want to Hide this page from navigation) Step 2) Create a new Web Form in C# Visual Studio (this web form will be placed in the route of the site) Step 3) Update the Web Config to include the new file mentioned in step 2 (or you will get a Server error in appliaction) Step 4) Add a Url redirect to the UrlRewriting.config, from the Umbraco page (created in step 1), to the web form (created in step 2). Step 2: Here is the C# Code (my-redirect-example.aspx) form for step 2: (it is basically a blank form) <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my-redirect-example.aspx.cs" Inherits="my_redirect_example" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transition