Forum Discussion
Matthew_Hutchin
Nimbostratus
Apr 09, 2018An iRule that uses a catch all for redirects?
Has anyone seen or done anything like this before?
when HTTP_REQUEST { if {[HTTP::host] ne "abc.com"} { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }
Can you even do this?
Of course, http redirect is possible. Not sure as what is purpose of this iRule here.
- Matthew_Hutchin
Nimbostratus
Hi,
Thanks for replying to me. So they a URL "abc.com" and it matches - go to that but if it doesn't match just use what was entered and use that http://[HTTP::host][HTTP::uri]
I don't see another way to do it. Any help is greatly appreciated.
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