Forum Discussion
Need help redirecting hundreds of host:uris to differentHOST:differentURI using datagroup and irule
- Feb 26, 2021
I dont see any syntax issue. But I see problem in your data group.
In my datagroup, I tried "https://mycompany.com/linkA" := "https://anothercompany.com/newlink". I tried with and without the "https://", but cant seem to get a match
I see you have put "https://mycompany.com/linkA", where the uri linkA is having A as caps.
So the Irule is converting everything to small case & when it does, it looks for record ""https://mycompany.com/linka" but it can't find one. So it wont redirect.
If you are doing string to lower in your irule, make sure you add your datagroup records in smaller case too.
This is a common mistake to ignore. I've done multiple times.
Please keep us posted & mark the thread as closed if it answers.
I dont see any syntax issue. But I see problem in your data group.
In my datagroup, I tried "https://mycompany.com/linkA" := "https://anothercompany.com/newlink". I tried with and without the "https://", but cant seem to get a match
I see you have put "https://mycompany.com/linkA", where the uri linkA is having A as caps.
So the Irule is converting everything to small case & when it does, it looks for record ""https://mycompany.com/linka" but it can't find one. So it wont redirect.
If you are doing string to lower in your irule, make sure you add your datagroup records in smaller case too.
This is a common mistake to ignore. I've done multiple times.
Please keep us posted & mark the thread as closed if it answers.
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