Joe_Pipitone
Feb 09, 2010Nimbostratus
Rewriting and passing query string only, not uri
I currently have an iRule that does a rewrite and also passes the uri.
I want to ONLY catch the query string and not the uri - for example:
http://www.oursite.org/info.aspx?id=67727
should redirect to:
http://info.oursite.com/default.aspx?id=67727
therefore stripping the info.aspx and only passing the query string - is this possible? This is the iRule I currently have in place which passes the uri, but this is incorrect. Thanks for any help.
when HTTP_REQUEST {
switch [string tolower [HTTP::path]] {
"/info.aspx" {
HTTP::redirect "http://info.oursite.com/default.aspx[HTTP::uri]"
}
}
}