Forum Discussion

jasona_40790's avatar
jasona_40790
Icon for Nimbostratus rankNimbostratus
Jun 14, 2012

need to rewrite HTTP 200 status code to HTTP 503

Hello,

 

 

I am performing website maintenance and need to bring down our website for a few hours. I will be

 

serving a friendly maintenance page during this time. However, when Google comes by during the

 

maintenance period this will present a problem for indexing. I am running BigIP version 10.2.3

 

 

Google strongly recommends that we return a 503 HTTP result code during the maintenance window:

 

http://googlewebmastercentral.blogs...anned-site-

 

downtime.htmlhttp://googlewebmastercentral.blogspot.com/2011/01/how-to-deal-with-planned-site-

 

downtime.html

 

There are similiar posts to mine in these forums, but none resolve what I am trying to do. I want to

 

serve a maintenance page from a pool in VIP and have the F5 rewrite the result code from a 200 to a 503.

 

I am able to apply the iRule to the VIP, however, it does not serve my maintenance page. This is my

 

iRule:

 

 

when HTTP_REQUEST {

 

HTTP::respond 503 noserver Retry-After: 10800

 

}

 

 

Thanks,

 

 

 

16 Replies