Forum Discussion
Unixian_307588
Nimbostratus
Nov 19, 2018Redirect specific urls on VS
Hi Guys,
I have 1 VS listening on port 80.
This VS serves a website and also redirects requests.
What kind of Irule would help me to exlude 1.domain.com from redirection.
And redirect every othe...
Unixian_307588
Nimbostratus
Nov 19, 2018I had the following irule in mind:
when HTTP_REQUEST {
Check if domain is "www.domain.com"
if {[string tolower [HTTP::host]] eq "1.domain.com"}{
Exit this event from this iRule
return
}
}
}
Redirect everything else to HTTPS
HTTP::redirect "https://[HTTP::host][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