Forum Discussion
brownie6969_121
May 31, 2012Nimbostratus
redirect irule
our old application url that pointed to the F5 vip was mybicrt.company.com. The new code is mybicrt.company.com/analytics. i created the following that achieves that part of ithttps://mybicrt.company.com/saw.dll?Dashboard&PortlPath/shared/Executive/_portal/Executiveand we need them to redirect tohttps://mybicrt.company.com/analytics/saw.dll?Dashboard&PortlPath/shared/Executive/_portal/Executive
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "/analytics/"
log local0. "redirect"
}
}
now the problem is that users have links to dashboards saved that look like this
basically the irule we have setup stops at analytics and I need a way to add /analytics after mybicrt.compan.com but keep the rest of the url there. Also there are a ton of dashboard links that are all different.
is this possible.
Thanks
Andrew
- natheCirrocumulusIn line with what hoolio said, could you post the fiddler/httpfox output? Or even using curl on the box? Would v much help.
- Gbps_31870Nimbostratus
- brownie6969_121Nimbostratusthanks for all the help guys but i am still experiencing the issue. the initial redirect works but dashboard links still don't.
- Gbps_31870Nimbostratus
- Michael_YatesNimbostratusHi Brownie6969,
when HTTP_REQUEST { switch -glob [string tolower [HTTP::path]] { "/" - "*/saw.dll" { HTTP::uri "/analytics[HTTP::path]" } } }
- brownie6969_121Nimbostratusthanks Michael. i tried that and now the initial link doesn't work
- Michael_YatesNimbostratusSorry,
when HTTP_REQUEST { switch -glob [string tolower [HTTP::path]] { "/" - "*/saw.dll" { HTTP::uri "/analytics[HTTP::uri]" } } }
- brownie6969_121Nimbostratusthe one you just sent didn't work but i changed path to uri in the first part and then the initial redirect worked but same issue with the dashboard link.
- Eric_St__JohnEmployeeGive this a shot:
when HTTP_REQUEST { if { !([HTTP::path] starts_with "/analytics") } { HTTP::redirect "/analytics[HTTP::uri]" } }
- brownie6969_121Nimbostratusestjohn
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