Forum Discussion
ScottTS
Nimbostratus
Nov 09, 2018removing :443 port from URL
irule to remove :port from host of URL
Snl
Cirrostratus
Nov 10, 2018if you want to redirect the client to the requested host without the port, you could use below irule
when HTTP_REQUEST {
Check if Host contains a colon
if {[HTTP::host] contains ":"}{
Redirect client to requested host minus the port and preserve the original URI
HTTP::redirect "https://[getfield [HTTP::host] ":" 1][HTTP::uri]"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects