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.xyz.com/store-ohio.html
but mainpage http://www.abc.com shouldn't be redirected.
Need urgent help please.
2 Replies
- Kevin_Stewart
Employee
Try 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}" } } } - Arvind_Thevendr
Nimbostratus
It is not breaking the sequence
http://172.16.111.215/storestorestorestorestorestorestore-ohio/storestorestorestorestorestore-oreck
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