Relocated Resource Pointer

Description

This script provides you with the ability to mark a resource as moved to a new location, something which is not provided simply as a method of the response object. The nearest alternative is to use the response.redirect to force a redirect which is useful, but not the correct response. If the resource will never again exist at this location then what is required is a moved permenantly (status code 301) rather than the moved temporarily (status code 302) that response.redirect generates.

Requirements

Single Compressed Download

Individual Components

Installation & Setup

  1. Save the source code file into a directory somewhere within your webroot, naming it code.asp.
  2. Save the 1st sample page into the same directory, naming it demo.asp.
  3. Save the 2nd sample page into the same directory, naming it demo_new.htm.

User Guide

The simplest way to explain how this works is to show you, so simply browse to demo.asp, and from here you should find yourself viewing demo_new.htm.

If this were a real example demo.asp would be the name of the old page and demo_new.htm would be the name of the new page, as you requested the first one the script informed your browser that this resource is no longer found here, however it did supply the new location of the resource. Naturally your browser seemlessly handled this and you were taken to the new page with the minimum of fuss, as would any user or search engine who attempted to visit the old page.
Evolved
Code
ASP, SQL & VB meet the internet.

Navigate

Home Parent Directory Meta-Search

Technical

ASP Scripts SQL Scripts VB Programs Show All

Guides

Show All

Other

Contact Site News About Legal Sitemap Links