More in this section
Forums / General Discussions / 301 Redirect to External Page

301 Redirect to External Page

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Alycia
    Alycia avatar
    1 posts
    16 Feb 2009
    03 Sep 2014
    Link to this post

    I'm running Sitefinity 7 on IIS 7.  I currently have a bunch of documents in my Sitefinity library that will be moved to a different domain.  I need to create 301 redirects for the Sitefinity document URLs to the new domain.    How do I create a redirect to an external domain for a former Sitefinity URL?  Is this done using IIS URLRewrite? Or something within Sitefinity itself?


  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    17 Aug 2017
    08 Sep 2014
    Link to this post
    Hi Alycia,

    You can handle the redirects as in any traditional ASP.NET application in the Global.asax file or by defining rewrite rules in the web.config file. I found the following articles related to redirecting in ASP.NET which might be useful to you:


    For example, in order to redirect your users from a page of your site to a different domain you can check the URL in Application Begin Request method in the Global.asax file and redirect to the new location:

    var RedirectString = "";
    if (HttpContext.Current.Request.Url.ToString().Contains(""))
        Response.StatusCode = 301;
        Response.AddHeader("Location", RedirectString);

    The code above checks if the url is "" the user is redirected to new location of the file as specified in the RedirectString variable.

    I hope the above information helps.

    Sabrie Nedzhip
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered