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 ...
hooleylist
Nov 09, 2010Cirrostratus
As George suggests, LTM VE would be a great way to test this.
Do you want the user to see the change to the file type? If so, then a redirect would work fine. If you want the change to be transparent to the user, you could change the redirect to a rewrite:
when HTTP_REQUEST {
if { [HTTP::path] ends_with ".php" } {
HTTP::uri [string map -nocase {".php" ".html"} [HTTP::path]]
}
}
Aaron
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