Forum Moderators: phranque

Message Too Old, No Replies

301 redirects on a windows server

         

HockeyFighter

8:34 pm on May 6, 2005 (gmt 0)

10+ Year Member



I dont have access to .htaccess on my windows server, so I was wondering if there was any other way to do a 301 redirect?

HockeyFighter

9:22 pm on May 6, 2005 (gmt 0)

10+ Year Member



Found the answer to my own question. Luckily my pages are all asp pages, so the following works just fine:

<%@ Language=VBScript %>
<%
response.status="301 moved permanently"
Response.AddHeader "Location", "http://www.domain.com/file-location.html"
%>

Krapulator

6:13 am on May 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can also do this through the Internet Services Manager if you have access to the server.