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...
Lee_Sutcliffe
Nacreous
Nov 19, 2018You can make it simpler if you reverse the logic and use an 'if not(!)'
when HTTP_REQUEST {
if {!([string tolower [HTTP::host]] eq "1.domain.com")} {
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