Forum Discussion
Jason_Roppolo_3
Apr 21, 2006Historic F5 Account
http redirect and port stripping
All,
Can anyone assist me with an iRule that would strip a certain string out of a url?
The customer has a vip that is 10.0.0.2:8010 which does a redirect to https://[H...
JRahm
Apr 25, 2006Admin
Try this:
when HTTP_REQUEST {
if { [HTTP::host] ends_with ":8010" } {
set http_host [string trimright [HTTP::host] ":"]
HTTP::redirect "https://$http_host[HTTP::uri]
}
}
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