> 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.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to