Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

301 Redirects - programmatically ??

Status
Not open for further replies.

elhaix

Programmer
Jul 31, 2006
115
CA
Hi,

Does anyone know if the following code executes as a meta-refresh on the client side, or actually originates on the server?

Code:
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","[URL unfurl="true"]http://www.new-url.com");[/URL]
}
</script>


Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top