Forum Discussion
Diego_23471
Nimbostratus
Nov 26, 2013irule redirects
How can I setup an irule direct to use wildcards. For example
redirect http://www.olddomain.com/Page1/current/* to http://www.newdomain.com/site1/new/
redirect http://www.olddomain.com/Page2/cur...
Kevin_Stewart
Employee
Nov 26, 2013You might consider using a switch -glob evaluation. Example:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/page1/current/*" {
HTTP::redirect "http://www.newdomain.com/site1/new/"
}
"/page2/current/*" {
HTTP::redirect "http://www.newdomain.com/site2/new/"
}
}
}
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