Forum Discussion
adrian_171483
Cirrus
Mar 11, 2015https matching
Hi,
I have an issue where we are re-directing http > https and adding some extra lines to a URI on the port re-direct.
When we target the Virtual server directly on HTTPS the re-direct is...
Max_Q_factor
Cirrocumulus
Mar 11, 2015I think you are looking for a basic modification of the _sys_https_redirect iRule from:
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
To something like:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/" } {
HTTP::redirect https://[getfield [HTTP::host] ":" 1]/something/something
} else {
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