Forum Discussion
nrelihan_68143
Nimbostratus
Oct 19, 2011Change HTTP redirect header question
Hey,
I'm currently doing a uri redirect which redirects traffic, so that traffic from one region will be redirected to their particular page: eg.
switch [whereis [IP::client_addr]...
nrelihan_68143
Nimbostratus
Oct 20, 2011Hey Michael,
Yes that makes sense, I remember I was using HTTP::respond 302 location before, and someone said I could just use HTTP::redirect instead. So I will just edit my code like so:
switch [whereis [IP::client_addr] country] {
"IE" {
if {$hostname eq "www.example.com" }
{ HTTP::respond 301 location "http://www.example.com/ireland"
Or can I leave out the quotes around http://www.example.com/ireland"?
Cheers.
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
