Forum Discussion
Arvind_Thevendr
Nimbostratus
Mar 18, 2014Irule redirect help please
We have a e-comm website http://www.abc.com with store locator and I need to redirect like example shown below to all states within USA
http://www.abc.com/ohio should be redirected to http://www...
Kevin_Stewart
Employee
Mar 18, 2014Try this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/" {
return
}
"/*" {
set uri [string map {"/" "/store-"} [HTTP::uri]]
HTTP::redirect "http://www.xyz.com${uri}"
}
}
}
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