Forum Discussion
southern_shredd
Cirrus
Oct 17, 2022redirect to to 301 location
We are trying to come up with an irule that will: redirect based on id value X (eg. 144 string) to a new URL and append the same value in this new URL . So it must extract the id=X value and append ...
- Oct 18, 2022
My bad, there's a typo.
Edited in previous comment
southern_shredd
Cirrus
Oct 18, 2022Thanks for the response, could we make it such that anything after /datastorage/XXXX be extracted and appended to the new URL? So it does not have to be numeric values only (144,145 etc.
Example
/#/?id=144
https://different-website.domain/external/services/datastorage/#/?id=144
https://different-website.domain/external/services/datastorage/#/50b2580d-9f9f-41b7-b0af-618d570de14f/receipt
https://different-website.domain/external/services/datastorage/#/?vi=BYR&saksnr=12221&id=144
redirected to:
https://different-website.domain/external/services/datastorage/#/?id=144
https://different-website.domain/external/services/datastorage/#/50b2580d-9f9f-41b7-b0af-618d570de14f/receipt
https://different-website.domain/external/services/datastorage/#/?vi=BYR&saksnr=12221&id=144
So perhaps using "HTTP::query" & /path maybe
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/external/services/datastorage"
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