Forum Discussion
K-Dubb
Nimbostratus
Jan 19, 2012Friendly URI Re-Write based off of User-Agent?
Hi everyone,
I was wondering if it is possible to do a URL Re-write based off the user-agent of the browser?
For instance, we have users that come in on url1.domain.com and are the...
Chris_Phillips
Nimbostratus
Jan 23, 2012I see what you're asking for now, and I don't personally think it is a wise solution to any problem. If the back end is going to do a redirection then something else clearly must use the redirection, and if it's not the UA, it's the LTM. So you really want a client to request domain1.com, the LTM pass that to the back end, the back end to 302 to domain2.com, the ltm to intercept this 302, follow it and then retry the incoming request again to an alternative pool.
There are examples of this: http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/1171749/showtab/groupforums/Default.aspx
http://devcentral.f5.com/wiki/iRules.Redirect-Trapper.ashx
But if I were being asked to implement this professionally I would rather push back very hard to make the application work differently in the first place, or shange the requirements.
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
