Forum Discussion
mohana_322852
Nimbostratus
Jun 02, 2017Need help for redirction of append URI
I have difficulties in redirection-
I want to do a redirection
abc.com to abc.com/act on both http and https
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals"abc.com" or [string tolowe...
Stanislas_Piro2
Cumulonimbus
Jun 02, 2017Why do you compare twice HTTP::host with abc.com?
The irule may not work without space between
equalsand "abc.com"
Do you only want to redirect / or all URI not starting with /act ?
If redirection is on the same service than the first request (user request https://abc.com/ and you want to redirect to https://abc.com/act/), you can redirect to relative URI instead of absolute:
HTTP::respond 301 Location "/act[HTTP::uri]"
a switch command in this irule is useless and a if may be used...
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
