Forum Discussion
Justin_Kalb_440
Nov 08, 2010Nimbostratus
Irule to change page extension
Sorry this is a total noob post and if i am reposting please bear with me.
I am completely new to rewriting and in a situation where i am not able to directly interface with the f5. I am ...
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
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