Page is a not externally linkable
- Microsoft
-- Microsoft IIS Web Server and ASP.NET
---- IIS 301 redirect


pageoneresults - 9:18 pm on Mar 24, 2004 (gmt 0)


Is there a way to redirect the individual pages?

There are various methods of redirecting pages. The best way is to do it at the server level. If you don't have access or cannot get your host to implement these for you, then you may have no other option. Unless of course they are old asp pages redirecting to new asp pages. Then you can use this...

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.example.com/new-page.asp"
%>

If its ASP.NET, you would do this...

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.example.com/new-page.asp");
}
</script>

Either one of those scripts needs to go on the old asp page above the opening <html> tag.

Always double check your work and make sure your redirects are returning the proper server headers.

Server Header Checker [searchengineworld.com]


Thread source:: http://www.webmasterworld.com/microsoft_asp_net/1570.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com