Forum Discussion

Brian_Kenworthy's avatar
Brian_Kenworthy
Icon for Nimbostratus rankNimbostratus
Aug 30, 2012

Redirect to New Page but Pass Query String Parameters

Hi All,

 

 

Need some advice on what an iRule would look like to do this....We are moving from legacy ASP listeners to .net listeners, but we don't want the client to change their endpoint until they are ready. So here's what it we are looking to do:

 

 

redirect requests destined for:

 

https://my.domain.com/vendor/status.asp?user=xxx&password=yyy

 

to

 

https://my.domain.com/vendor/status.aspx?user=xxx&password=yyy

 

 

I know how to redirect the whole URI, but am confused about how to change just one piece:

 

 

when HTTP_REQUEST {

 

HTTP::redirect "https://[HTTP::host][HTTP::uri]"

 

}

 

 

Thanks for your help in advance!!

 

BK

12 Replies