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...
Wil_Schultz_101
May 31, 2007Nimbostratus
Rumor has it that switches are faster, I don't know this for a fact, however I do use switches wherever possible and have not run into any problems yet 😄
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/abc*" { HTTP::respond 301 Location "http://www.mydomain.com/xyz" }
"/bcd*" { HTTP::respond 301 Location "http://www.mydomain.com/wxy" }
"/cde*" { HTTP::respond 301 Location "http://www.mydomain.com/vwx" }
"/def*" { HTTP::respond 301 Location "http://www.mydomain.com/uvw" }
}
}
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