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...
RossVermette
Nimbostratus
Nov 19, 2018You could do something similar to this: (Note I have not tested this)
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"domainame.noredirect.com" -
"domainname2.noredirect.com" { pool poolname_pool }
default {
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