Joe_Pena_46781
Jan 25, 2017Nimbostratus
irule and redirect exception
we have a domain bankrate.com that redirects all request to , however need to make an exception for a particular URL NOT to redirect. for example: we do not want to redirect http://bankrate.com/filename.html, all other request to http://bankrate.com/* should redirect to http://www.bankrate.com/.
Here's my irule currently:
when HTTP_REQUEST { switch -glob [HTTP::uri] { "/system/util/email.aspx*" { HTTP::respond 301 Location "; } } switch [HTTP::host] { bankrate.com - { HTTP::respond 301 Location "http://www.bankrate.com[HTTP::uri]" } } }