Forum Discussion
Ramv
Oct 07, 2022Nimbostratus
iRule creation with redirection condition
Dears, I have a requirement to create irule below requirement If URL is referring to a page that does not end with a "/" or a file ending ".xxx" then redirect to the same URL ending with a "/" wh...
Oct 07, 2022
Hi Ramv,
when HTTP_REQUEST {
if { !([class match [string tolower [HTTP::path]] ends_with /Common/extensions]) and !([string tolower [HTTP::path]] ends_with "/") } {
HTTP::path "[HTTP::path]/"
}
}
You can modify the datagroup from Local Traffic ›› iRules ›› Data Group List menu. You can also use the following command.
tmsh
modify ltm data-group internal extensions records add { .abc .def .xyz }
- RamvOct 08, 2022Nimbostratus
Hi Enes,
Thanks for responding, I will keep you update once we implement the irule.
Regards,
Ram
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