Forum Discussion
simonbaumann_12
Nimbostratus
Feb 15, 2013iRule to redirect URI based on source ip.
Hello,
I am looking for a rule to fullfill the following requirement: redirect the url https://host.test/content/ to an new url https://newhost.test for all ip source addresses. There is another...
simonbaumann_12
Nimbostratus
Feb 19, 2013I think I got an error in reasoning, let's check it:
https://old.host/content --> redirect to https://new.host, for all IP addresses
https://old.host/content/adminlogin.aspx --> access only for an specified IP range
I got the idea to create such an rule:
when HTTP_REQUEST {
if { not ([HTTP::uri] contains "admin" )}{
HTTP::redirect "https://new.host"
}
}
But thet would ne prevent other hosts to connect to the admin interface. Also, i would not work if the admin itnerface uses content ot the /content directory since that will get redirected. How would you solve such an requirenment? Thanks.
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