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 "/"
when HTTP_REQUEST {
set req [string tolower [HTTP::path]]
if { !([class match $req ends_with extensions])
or !($req ends_with "/") }
{ HTTP::path "[HTTP::path]/" }
}
Above irule will meet my requirements? addtionaly where I can define the extensions under data group records as below?
ltm data-group internal /Common/extensions {
records {