Forum Discussion
Kate_Kattar_107
Nimbostratus
Jul 22, 2008URL forwarding help
I have a fairly simple request but need some guidance regarding the best way to do it. My client is lauching a new website and would like to forwarding 30 other urls to this new url. For instance:
...
The_Bhattman
Nimbostratus
Jul 22, 2008Hi Kate,
There are number of ways to do this. One that comes to mind is the switch command
I.E
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"www.site1.com" { HTTP::redirect "http://www.newsite.com/site1" }
"www.site2.com" { HTTP::redirect "http://www.newsite.com/site2" }
"www.site3.com" { HTTP::redirect "http://www.newsite.com/site3" }
"www.siteN.com" { HTTP::redirect "http://www.newsite.com/siteN" }
.
.
.
}
}
Click here to find out more about the switch command
Hope this helps
CB
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