Forum Discussion
George_Watkins_
Nov 08, 2010Historic F5 Account
Hi Justin,
Man! For not having access to a BIG-IP, you were almost dead on. I modified it slightly and this is what I came up with:
when HTTP_REQUEST {
if { [HTTP::uri] contains ".php" } {
HTTP::redirect http://[HTTP::host][string map -nocase {".php" ".html"} [HTTP::uri]]
}
}
You should download a copy of LTM VE (http://tinyurl.com/f5ltmve). It is free and runs on VMWare ESXi, Workstation, or Player. I use it extensively for testing iRule code and configurations involving LTM. Hope this helps,
George