Forum Discussion
Blue_whale
Cirrocumulus
Jan 24, 2020[URGENT] - Need help on Irule for URL/URI redirect
We want all the request comming to www.example.fr from specific source 10.10.10.1 to get redirected to www.example.fr/ckpartner/ and this should be logged . Can you please with ...
Rodrigo_Albuque
Cirrocumulus
Jan 24, 2020You can try something like this:
when HTTP_REQUEST {
if { ([HTTP::host] equals "www.example.fr") } {
HTTP::redirect "www.example.fr/ckpartner"
log local0. "Client IP [IP::client_addr] has been redirected"
}
}- Blue_whaleJan 24, 2020
Cirrocumulus
Thanks Rodrigo ,
This Irule should only redirect when external users are trying to access the VIP , So we don't want this to impact the internal clients ...So we want to redirect only when we see request from specific external clients .
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
