How to create a 301 Redirect in c# and

24 April 2017 , , , ,

If you need to redirect a page to another page or site, it’s best to use a 301 redirect to help retain some of your SEO work. It’s believed that a 301 redirect will reduce your PageRank by only 15%, compared with the 100% loss if you just redirect or use a 302 redirect.

To setup a 301 redirect is simple, as shown in the below examples:

301 Redirect using

Response.Redirect("", false)
Response.StatusCode = 301

301 Redirect using C#

Response.Redirect("", false);
Response.StatusCode = 301;


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.