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

Posted by Per Jψrgen Vigdal on 11/18/00 11:30

Do you say that this can not be managed in html or dhtm





"Stuart" <stuart@edesign.cc> wrote in message
news:3BG8f.36657$S_1.15091@newsfe5-win.ntli.net...
> 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация