I have an irule display problem (below iRule) for redirecting URL path to maintenance page’s pool.
The request is that LTM need to redirect the URL path www.server.com/News/ to Maintenance page. The other URL path route to default pool. www.server.com/News/* to Maintenance page. www.server.com/* to Normal server page (default pool)
The result was that the “News” client can be redirected to maintenance pool for showing the content of index.html page but all images and web styles are missed. If I changed the default pool to maintenance pool, the maintenance page can display images and web styles properly.
Can someone help me to solve the irule problem?
=========
iRule Name: Redirect News URL to Maintenance only
when HTTP_REQUEST {
irule for when we are using News
if { [string tolower [HTTP::uri]] contains “/News/” }
As soon as the HTTP::redirect line is hit, the irule stops processing, so you never actually get to the pool statement. The client has been redirected away from this HTTP_REQUEST session. You should probably just get rid of that line and change their URI accordingly.
I also failed to get the images and style when redirect to pool_maint directly. (As above example) may i know what the image url is e.g. in view source menu in browser?