Forum Discussion
Andy_McGrath
Apr 14, 2016Cumulonimbus
Hi John, I had the same issue not to long ago and thought i have put the code snippet on DevCentral so just added:
HTTP to HTTPS Redirect Rewrite plus port change
For your second example where you trying to remove port form the location header change the following line to remove the ':8443'
lreplace $loc_list 2 2 '[lindex [split [lindex $loc_list 2] ":"] 0]:8443'
e.g. Change to
lreplace $loc_list 2 2 '[lindex [split [lindex $loc_list 2] ":"] 0]'
Hope this helps