Forum Discussion
Tom_90789
Nimbostratus
Jul 17, 2009Change part of HTTP::host based on User Agent
I am trying to change the HTTP:host for a HTTP::redirect based on the UserAgent identified.
I am able to make it work using a static host, and changing to a different static host, base on the U...
Tom_90789
Nimbostratus
Jul 20, 2009yes that would be simpler.. however, my goal is to make this rule work for any site whose URLs are constructed properly without having to change the rule. I probably didnt make that clear enough.
That is why i have the logic in there to manipulate the HTTP::host
so.. basically the goal is to change the host dependant upon the user agent... if it matches the useragent list... change the host from www.1234.com to m.1234.com and if it does not match the useragent list change it from www.1234.com to www2.1234.com
shouldnt my split, lreplace, and joins work?
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