Forum Discussion
shawno_84086
May 30, 2007Nimbostratus
Realtional URI rewrites
I am completely new to irules and I would like some validation, or perhaps a better way to do what I want.
I am deploying a new website that uses a completely new set of URIs. All of the previous...
JRahm
May 31, 2007Admin
I couldn't quite infer whether those mappings are static or dynamically generated, but if they are static, you can easily create a class for that:
class myURImappings {
"abc xyz"
"bcd wxy"
"cde vwx"
"def uvw"
}
Then your rule is quite simple:
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri]] starts_with $::myURImappings] } {
HTTP::respond 301 Location "http://www.mydomain.com/[findclass [string tolower[HTTP::uri] $::myURImappings " "]"
}
}
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