Forum Discussion
Required help for iRule for source based redirection
yes it is very much possible and you already have thought on the correct lines.
when CLIENT_ACCEPTED {
if { ([class match [IP::client_addr] equals Internal] )}
{
HTTP::respond 301 Location "http://testing.dff.com/tnr";
}
else
{
HTTP::respond 301 Location "http://testing.dff.com/pnr";
}
}
Where you internal would be your internal subnets/IP's they land on /tnr and external world land on /pnr.
Thanks for your response but my requirement is when external users tried to access these two url http://testing.dff.com/tnr http://testing.dff.com/enr
then they get one of holding page which i mentioned in iRule but when internal users tried then they did, means they are able to access these url.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
