Forum Discussion
shawno_84086
Nimbostratus
May 30, 2007Realtional 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
Admin
May 31, 2007I 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 " "]"
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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