Forum Discussion
Brian_Kenworthy
Feb 10, 2011Nimbostratus
HTTP>HTTPS Redirect to different domain
Hi all, this should be pretty simple....hopefully.
I have a simple HTTP>HTTPS redirect in place for a domain --> HTTP::redirect "https://[HTTP::host][HTTP::uri]"
We have several su...
hooleylist
Feb 10, 2011Cirrostratus
Nice suggestion Chris. You could save the second lookup by returning the name and value in the first lookup. Here's an untested example:
when HTTP_REQUEST {
set lookup [class search -element domainredirects equals [string tolower [HTTP::host]]]
if { [llength $lookup] == 2 } {
HTTP::redirect "https://[lindex $lookup 2][HTTP::uri]"
}
}
Aaron
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