Forum Discussion
nrelihan_68143
Nimbostratus
Jul 08, 2011Redirecting to regional website depending on user DNS.
Hey all, I'm quite new to F5 irules first of all.
Perhaps I'll tell you what I have working first and then explain to you what additional things I'd like to do.
What I have working...
Peter_72728
Nimbostratus
Jul 08, 2011I don't think the logic to add URI rewriting that retains the requested URI (i.e. www.fakewebsite.CO.UK/pictures) would be too hard. In fact you might get away with something like this in your pool-UK Local traffic irule:
if { not [HTTP::uri] starts_with "/ireland" } {
HTTP::respond 302 Location http://www.fakewebsite.com/ireland/[HTTP::uri]
}
In response to your last question...
Unless your rule did something else (maybe add a cookie?), I'm not sure how the iRule would be able to differentiate a request that was redirected to .com/ireland verses one where the user typed that in manually.
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