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
- natheCirrocumulusAndrew,
- hooleylistCirrostratusSlight updates :)
- natheCirrocumulusThanks Aaron - depending on what time of day (or night) it is I quite often forget if the / is included in the uri or not.
- brownie6969_121Nimbostratusthanks for the responses guys and i tried it but i am still seeing the same results. Here is the irule i am using
- Gbps_31870NimbostratusHi Brown,
- brownie6969_121NimbostratusThank you but still not working.
- Brian_69413NimbostratusPerhaps you should be using [HTTP::path] instead of [HTTP::uri] to include the variables from the dashboard?
- brownie6969_121NimbostratusThanks Brian but still same issue.
- hooleylistCirrostratusWhen you say it's not working, can you clarify what's happening? You can use a browser plugin like HttpFox for Firefox or Fiddler to check the requests/responses the client sees. You could also uncomment the log statement in the iRule to see if the HTTP::path check is matching. Also, do you see any errors in /var/log/ltm?
- brownie6969_121Nimbostratusso mybicrt.company.com redirects to mybicrt11g.company/analytics. that part works fine but when it needs to be inserted into dashboard like
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