|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
does perl or even html have a redirect method (ie redirecting a browser)?
|
|
#2
|
|||
|
|||
|
I think this is what you are asking for, I got it from www.htmlhelp.com
"<META HTTP-EQUIV="refresh" CONTENT="n; URL=http://foo.bar/"> This is a so-called "meta refresh", which on certain browsers causes the document mentioned in the URL to be loaded after n seconds. This can be used for slide shows or for often-changing information, but has some drawbacks. In particular, if you use a value of zero seconds, the user can no longer go "Back" with his back button. He will be transferred to the specified URL, and when he presses "back" there, he will go back to the document with the refresh, which immediately redirects him to the document he tried to get away from." You should use this between the <HEAD>...</HEAD> tags. Good Luck! (: |
|
#3
|
|||
|
|||
|
Here is the Perl way:
#!/usr/local/bin/perl print "Location: <A HREF="http://foo.bar.com/nn";" TARGET=_blank>http://foo.bar.com/nn";</A> The best and fastest way, however, is to use htaccess directive -> http://www.apache.org/docs/mod/mod_alias.html#redirect |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > redirect |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|