Forum Moderators: open
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.example.com/"
%>
You would of course need to change the Location to your new URI. This script would be used if you are moving a page or renaming a page and wish to alert the spiders that the page has been 301 Moved Permanently. You would also need to place a message on that page for the visitors telling them that the resource has been moved and provide them with the new URI too.
There are other ways to do this, this makes it simple for those who are not managing hundreds or thousands of pages that require a 301 Moved Permanently server header response.
Note: This technique only works with .asp pages.
Make sure to check that your pages are returning the proper server header response...
Server Header Checker [searchengineworld.com]