Contensive supports a method to preserve previous URLs called Link Forwarding. Under Link Forwarding, an administrator can configure Contensive to detect and automatically redirect a user hits on a specific URL. To implement this, Contensive uses a feature in IIS that detects 404 (page not found) errors, and returns the content of a "Page Not Found" page.
The developer must set up a "PageNotFound.asp" page with a Contensive init() and GetClosePage(), and perhaps a message that says the page you were looking for could not be found. Be sure not to include any relative URLs in the page. All URLs must be absolute because IIS does not redirect to this page, it simply returns this page in place of the 404.
The developer also has to modify the IIS behavior for a 404 error, by changing the response to a Link, with the URL:
Administrators can then add entries to the "Link Forwarding" Content, adding the URL that should be redirected, and the URL it should redirect to. Care should be taken to make sure that no page actually exists at the source URL, so the web server will generate a 404 (page not found) error when a user hits that URL.
When a user hits the source page, IIS executes the PageNotFound.asp page, which searches the Link Forward content for a match, and if found, Contensive automatically forward to the destination URL. If it is not found, the PageNotFound.asp content is returned.
This page was last reviewed Saturday, April 04, 2009