|
Posted by Stuart on 09/30/95 11:30
Per Jørgen Vigdal wrote:
> I need to redirect to an alternative url if an other redirect fails.
>
> Here is the logic
>
>
>
> If( redirect("URL_A") != success )
>
> redirect("URL_B")
Redirects don't work quite like that - they don't tend to 'look before
they leap', so to speak.
You'd have to devise some method of checking the server was up (In PHP,
you could attempt to call fopen() on a resource on that server, and call
a redirect based on the result.)
Depends on your server configuration & language of choice, of course...
--
Stuart Brown <stuart@edesign.cc>
http://www.edesign.cc
Navigation:
[Reply to this message]
|