Re: [users@httpd] Mod Rewrite for Server Status 503, depending upon URL

2011-09-19 Thread Ujjwal Kumar
Thanks Pete. It worked perfectly!! :) On Sat, Sep 17, 2011 at 8:25 PM, Pete Houston wrote: > Untested, but: > > >ServerName www.mysite.com > >ErrorDocument 503 http://www.mypartnersite.com/books > > >ErrorDocument 503 http://www.my

Re: [users@httpd] Mod Rewrite for Server Status 503, depending upon URL

2011-09-17 Thread Pete Houston
Untested, but: ServerName www.mysite.com ErrorDocument 503 http://www.mypartnersite.com/books ErrorDocument 503 http://www.mypartnersite.com/music ... should do what you describe. Pete On Sat, Sep 17, 2011 at

Re: [users@httpd] Mod Rewrite for Server Status 503, depending upon URL

2011-09-17 Thread Ujjwal Kumar
/music is not a directory, it is just a URL which is routed to some specific JSP (bound with a struts action), through struts.xml and urlrewrite.xml (using tuckey). I am restating the problem with more clarity. Lets say we have 2 sites www.mysite.com and www.mypartnersite.com mysite deals with b

Re: [users@httpd] Mod Rewrite for Server Status 503, depending upon URL

2011-09-16 Thread Mark Montague
On September 16, 2011 2:58 , Ujjwal Kumar wrote: * /music is not a physical directory What is /music? Is this URL proxied? Is the content for this URL generated by a script? Something else? * In one sentence, the problem is to redirect specific urls (a) to a page only if that

[users@httpd] Mod Rewrite for Server Status 503, depending upon URL

2011-09-16 Thread Ujjwal Kumar
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 th