RE: [PHP-WIN] Server-level redirect?
| From: | Murray @ PlanetThoughtful | Date: | Fri, 05 Nov 2004 17:54:20 +0000 |
| Subject: | RE: [PHP-WIN] Server-level redirect? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24902@lists.php.net to get a copy of this message | ||
> 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.
Hi Anne,
This probably isn't a terribly helpful suggestion, but one way of achieving
this would be to set your servers up so that .html and .shtml pages are
parsed as PHP and simply use a standard header("Location: etc") statement in
these pages to redirect to the new PHP page in question.
Much warmth,
Murray
http://www.planetthoughtful.org
Building a thoughtful planet,
One quirky comment at a time.