Page is a not externally linkable
- Microsoft
-- Microsoft IIS Web Server and ASP.NET
---- Perm Redirect: 301 vs. htaccess on Windows server


mattglet - 1:34 pm on Mar 18, 2004 (gmt 0)


Ok, this is how you do it. First off, htaccess is a *nix tool, you will not find one on a windows server. In order to do a 301, you will need to put this code on the top of every page you wish to be redirected:

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

The page this code runs on must be an .asp page.

Hope this helps.

-Matt


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