Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

WillC_97839's avatar
WillC_97839
Icon for Nimbostratus rankNimbostratus
Dec 14, 2009

Redirect irule puts in query twice

Hi there,

 

 

I've got a basic irule so when someone hits my admin vhost, it will always go over https. The current rule is:

 

 

when HTTP_REQUEST {

 

set myURI [string tolower [HTTP::uri]]

 

set myQUERY [ string tolower [HTTP::query]]

 

 

if { [HTTP::host] eq "admin.mysite.com"} {

 

HTTP::redirect "https://admin.mysite.com[HTTP::uri][HTTP::query]"

 

}

 

}

 

 

It works fine for pages like:

 

 

http://admin.mysite.com/articles/myarticle.php

 

 

http://admin.mysite.com/articles/myarticle.php?action=view&productionarticle_id=10080

 

 

 

But I'm having a problem with:

 

 

http://admin.mysite.com/charts/?selected=edit

 

 

It redirects to:

 

 

https://admin.mysite.com/charts/?selected=editselected=edit

 

 

so, it seems like it's not parsing out the variables following the /.

 

 

Here's a log entry of what it thought it saw:

 

 

The HTTP URI: /charts/?selected=edit -- the HTTP query: selected=edit

 

 

 

Any suggestions on how to get it working?

 

 

Thanks

2 Replies

No RepliesBe the first to reply