You are here: Re: Redirect « HTML « IT news, forums, messages
Re: Redirect

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация