Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-26 Thread alan bryan
Here's what we use. We have this at the bottom of our VirtualHost sections and just uncomment and restart apache before working on the sites. #Uncomment to redirect temporarily while working on site #ErrorDocument 503 /503.php #RedirectMatch 503 ^/(?!(503\.php|503\.gif)) Not sure if that's the

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Evaldas Imbrasas
Is there a way to do this redirect on a conditional as a rewrite rule allows, though? I.e., return a 503 if a certain file exists? Is there a way to return a custom document along with a 503 Network Unavailable response code using mod_rewrite rules? The documentation mentions the ability to

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Joshua Slive
On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: Is there a way to do this redirect on a conditional as a rewrite rule allows, though? I.e., return a 503 if a certain file exists? Is there a way to return a custom document along with a 503 Network Unavailable response code using

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Evaldas Imbrasas
On 8/25/06, Joshua Slive [EMAIL PROTECTED] wrote: On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: Is there a way to do this redirect on a conditional as a rewrite rule allows, though? I.e., return a 503 if a certain file exists? Sure, just make a certain file an .htaccess file in the

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Joshua Slive
On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: On 8/25/06, Joshua Slive [EMAIL PROTECTED] wrote: On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: Is there a way to do this redirect on a conditional as a rewrite rule allows, though? I.e., return a 503 if a certain file exists?

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Evaldas Imbrasas
It would be no more performance-draining to check for an .htaccess file than it would be to check for any other file as a condition for issuing a 503. If .htaccess files are enabled, Apache would check for their existance recursively, wouldn't it? Meaning, for a requested file that is 4

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Joshua Slive
On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: It would be no more performance-draining to check for an .htaccess file than it would be to check for any other file as a condition for issuing a 503. If .htaccess files are enabled, Apache would check for their existance recursively,

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-25 Thread Bob Ionescu
Evaldas Imbrasas wrote: On 8/25/06, Joshua Slive [EMAIL PROTECTED] wrote: On 8/25/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: Is there a way to do this redirect on a conditional as a rewrite rule allows, though? I.e., return a 503 if a certain file exists? Sure, just make a certain file an

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-22 Thread Joshua Slive
On 8/22/06, Evaldas Imbrasas [EMAIL PROTECTED] wrote: Hi all, Is there a way to return a custom document along with a 503 Network Unavailable response code using mod_rewrite rules? The documentation mentions the ability to return 3xx and 4xx, but not 5xx. If 5xx codes are unavailable - is there

Re: [EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-22 Thread André Malo
* Evaldas Imbrasas wrote: Is there a way to return a custom document along with a 503 Network Unavailable response code using mod_rewrite rules? The documentation mentions the ability to return 3xx and 4xx, but not 5xx. If 5xx codes are unavailable - is there a specific reason why? In case

[EMAIL PROTECTED] 503 response with mod_rewrite?

2006-08-21 Thread Evaldas Imbrasas
Hi all, Is there a way to return a custom document along with a 503 Network Unavailable response code using mod_rewrite rules? The documentation mentions the ability to return 3xx and 4xx, but not 5xx. If 5xx codes are unavailable - is there a specific reason why? In case you're wondering why I