Forum Discussion

tarma_58716's avatar
Icon for Nimbostratus rankNimbostratus
Jun 12, 2011

split port url in the https class redirection

Hi i've a httpclass wich redirect the client to a new URL:



profile httpclass localhost_redirect {


defaults from httpclass


pool none


redirect "http://172.x.x.x:"2131"





The Vs has not a pool it just redirect the client to the new URL.


I would like to split the port number in to the browser.



Has anyone know how to write an irule allowing this.



I've tried to use this iRule but it doesn't work, the port still be displayed buy the Browser:





if { [HTTP::header value Location] contains ":" } {


HTTP::header replace Location [lindex [split [HTTP::header value Location] ":"] 0]/







Thanks in advance for your help.


13 Replies