Forum Discussion
anuj_2931
Jun 07, 2012Nimbostratus
HTTP::host to match all subdomains of a domain
Guys,
I want to write an Irule to redirect http to https for all subdomains in a particular domain. I want to do this because we host many domains on that VS and only one of the domains will...
t-roy
Jun 07, 2012Nimbostratus
think you want something like:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] contains ".domain.com"}{
HTTP::redirect "https://x.domain.com[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