Forum Discussion
Chris_Olson
Nimbostratus
Nov 08, 2019Redirect to marketing site without impacting other url/pools
I have a redirect problem that is a bit difficult for me to solve. Most of our sites/pools require a suffix after the main domain. For example: www.example.com/production www.example.com/sal...
Nov 09, 2019
Hi Chris,
You should add below line for no path. Otherwise when host is www.example.com, it always redirects.
[HTTP::path] eq "/"
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "www.example.com" and [HTTP::path] eq "/"} {
# ...
}
}
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