Forum Discussion
Redirecting a URL that shares a common pre-# path but is an entirely different page - https://fqdn/myaccount/#/forms/moving
Hi Brett,
since I've seen your comment in the https://devcentral.f5.com/questions/redirect-uri-with-symbol post I'll skip the tutorial of URI fragments... 😉
Well, the only option you have to support your requirements would be to use a
STREAM::expression
to rewrite the fragmented URIs before its getting send to your clients. With STREAM you could either translate the URI from...
https://fqdn/myaccount//forms/moving
... to ...
https://fqdn/myaccount/?fragment=%2fforms%2fmoving/forms/moving
... or directly to ...
https://fqdn/moving.html
The first approach would store the URI-Fragment in an additional URI-Query, so that the client would send the URI-Fragment identifier back to your load balancer. In this case you could use an iRule to inspect the URI-Query containing the embeded fragment identifier to finally trigger the redirect (good approach when dealing with lots of fragments)
The second approach will directly translate the original URI to the redirect location.
FYI: If the the fragmented URI is also send via HTTP redirects, then you have to inspect and translate the "Location" HTTP-header, too.
Cheers, Kai
Recent Discussions
Related Content
* 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