Forum Discussion
Randy_Johnson_L
Nimbostratus
Mar 06, 2017Evaluate full URL for empty URI / Path ?
I need to deploy an iRule that will perform a redirect, based on the HTTP::uri or HTTP::path being empty.
This needs to take into account a user trying 'http://server.company.com' and 'http://server....
Root44
Altostratus
Mar 06, 2017Is it something you want to try?
when HTTP_REQUEST { if { [HTTP::header host] eq "company.com" } or { [HTTP::header host] eq "company.com/" } { HTTP::redirect "http://server.company2.com[HTTP::uri]" }
else
{ HTTP::redirect "; } }
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
