RE: [PHP-WIN] Server-level redirect?

From: Date: Fri, 05 Nov 2004 21:47:28 +0000
Subject: RE: [PHP-WIN] Server-level redirect?
Groups: php.windows 
Request: Send a blank email to php-windows+get-24911@lists.php.net to get a copy of this message
If you are not partial to your current 404 error page, set it to a script that gets the http referer. Then set up some sort of reference between the old/new pages (hardcoded array, or a db would work). If there is a match - send them over to the new .php page - if not - maybe give them your old 404 error page. - Sean _____________________________ E L A S T I C H O R I Z O N http://www.elastichorizon.com _____________________________ -----Original Message----- From: Anne Shroeder [mailto:anne@language-works.com] Sent: Friday, November 05, 2004 11:58 AM To: php-windows@lists.php.net Subject: [PHP-WIN] Server-level redirect? I'm converting an entire site from .html and .shtml files to .php. Unfortunately a lot of the internal pages have been bookmarked by users, and so what I'd like to do is have a script that checks for the existence of a .php file with the same name (e.g. the file used to be contacts.shtml and now it is contacts.php) and redirects automatically. I actually need to do this both on an IIS machine as well as Linux - and presumably the method will be different for each. Anne -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#24911) next »