Forum Discussion
Chris_Robert_10
Nimbostratus
Sep 15, 2006URL rewrite plus
I currently have this iRule running:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/www.mysite.com/" } {
HTTP::uri "/www.mysite.com/index.htm/"
}
}
...
Deb_Allen_18
Sep 15, 2006Historic F5 Account
Actually, this makes more sense for the URI replacement:
when HTTP_REQUEST {
if {[string tolower [HTTP::host] equals "mysite.com" } {
HTTP::header replace Host "www.mysite.com"
}
if {[string length [HTTP::uri]] <= 1 } {
HTTP::uri "/index.htm"
}
}
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