Mod Rewrite for Server Status 503, depending upon URL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to redirect only if there is an error (server status 503). Without the error, this is the redirect script, which works fine:


Redirect /music http://google.com/music
Redirect /talk http://pidgin.com/some_gtalk_url

But, this redirects /music to http:// google.co/music in all cases. I want this redirect only in case of an error. This syntax:


ErrorDocument 503 http://google.com/music

redirects all urls with 503 error message to http://google.com/music. But, I want the /talk ones with 503 error messages to be redirected to https://pidgin.com/some_gtalk_url

Any clues on how to do it?

Few notes on the problem:
Ujjwal

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux