![]() | | ||||||||
| | #1 |
| John Palmieri, Copywriter War Room Member Join Date: Oct 2007 Location: USA
Posts: 762
Thanks: 126
Thanked 104 Times in 84 Posts
|
I need to rename some of my pages. So, for SEO purposes, I need to do a 301 redirect to the new page. How is that done when using ASP.NET? Thanks! Johnny |
| | |
| | #2 |
| HyperActive Warrior War Room Member Join Date: May 2005 Location: Auckland, New Zealand.
Posts: 241
Thanks: 0
Thanked 13 Times in 12 Posts
|
The standard Response.Redirect won't do it. Something like Code:
Response.ClearContent()
Response.ClearHeaders()
Response.StatusCode = 301
Response.StatusDescription = "Moved Permanently"
Response.AppendHeader("Location", "http://www.example.com/") |
| | |
| | |
![]() |
|
| Tags |
| 301, aspnet, redirect |
| Thread Tools | |
| |
![]() |