Forum Discussion
Kai_Wilke
Dec 10, 2015MVP
Hi Jgoetsch,
If the casesensitivy is the only problem, then you may want to format the HTTP::uri string tolower before evaluating the old "solutions/starter-kit" condition.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "solutions/starter-kit" } then {
HTTP::redirect https://www.bittitan.com/starter-kit
}
}
Alternativly you may want to explicitly exempt the correct URI from becomming redirected again.
when HTTP_REQUEST {
set low_uri [string tolower [HTTP::uri]]
if { $low_uri starts_with "/starter-kit" } then {
Do nothing
} elseif { $low_uri contains "/starter-kit" } then {
HTTP::redirect https://www.bittitan.com/starter-kit
}
}
Cheers, Kai