Hi, I am a freshman iruler and I am trying to redirect from one url to a separate url and in doing this going from http to https but the port used will NOT be 443, but in this case it will be something different such as 9999. So to put it in a practical perspective. I have this site www.oldsite.com, when users type this site I want them to get redirected to www.newsite.com, and in getting redirect it should be from http to https using port 9999 instead of the usual 443.
Below is what I have, but I think I am missing something, because I am getting an error.
HTTP::header replace Host “[HTTP::host]:9999” if { [string tolower [HTTP::host]] equals “www.oldsite.com” } { HTTP::redirect “https://www.newsite.com” } }
NOTE: I know this should be possible. I think I am just missing something I am not recognizing.