i'd like to set up a redirection page.
one of the database apps on my server will be moving to a different machine, so the url will be changing. i want to put a
php or js redirection page in this folder on the server that
-will say something like 'this site has moved, you'll be automatically redirected to the new site in 10 seconds', then redirect them there
here's where it gets tricky
-i want the redirection to cover any page within the directory where the site used to reside, so regardless of which page within the database app's folder the user is trying to get to, he'll be redirected to the site's new location
-this will probably be the most difficult - if it's at all possible, if a user is trying to get to
http://my.oldlocation.com/dynamicpage.php?variable=var&newvar=var&thirdvar=three
i'd like the redirection script to replace the string 'my.oldlocation.com' with 'my.newlocation.com' in the url string and then redirect them to
http://my.newlocation.com/dynamicpage.php?variable=var&newvar=var&thirdvar=three
any comments and suggestions are welcome. if i could get either of the last two items going with this script that would be great
thanks again