Forum Discussion
iRule to map all and preserve HTTPS
First, a URI will always start with "/", so it may be more appropriate to say "equals". Then you could perhaps do something like this:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::uri "/console"
}
}
There's a good chance, however, that this may not be enough. There's the potential for complexity here, especially if the site returns document object references with the /console URI prefix. Is it absolutely important that you obfuscate the real URI path? If so, you may want to look at the ProxyPass iRule or the rewrite profile in v11.4 and above. Offloading the SSL and replacing the Host header is easy, but remapping the URI can get tricky.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
