in reply to How to redirect an html page to a Perl script
If you can arrange it, you'd be best off having your server return a 301 Moved response code. This is the preferred solution.
If you don't have the access to do that with your server, you could replace your index.html file with a message saying it's moved, and including a meta refresh tag, like so:
<html> <head> <meta http-equiv="refresh" content="0; URL=http://new.site.com/script.pl?source=old+sit +e+name"> <title>Page has moved!</title> </head> <body> <h1>This page has <a href="http://new.site.com/script.pl?source=old+site+name">mov +ed</a>! </h1> </body> </html>
Of course, meta refresh isn't supported by all browsers (IIRC, lynx doesn't support it). And it might screw with the browser's history.
Update: Fixed content portion of meta refresh (missing URL=), and added some more explanation.
bbfu
Black flowers blossom
Fearless on my breath
|
|---|