Forum Discussion
Darren_Person_2
Nimbostratus
Nov 03, 2006iRule URL Rewrite for Multiple domains
Can someone explain how to approach this problem?
I have multiple domains that each need to 302 redirect back to their primary's:
For example,
i have:
www.test.com ...
May 29, 2007
I've corrected your iRule in your previous post (there were some formatting issues that caused the post to not display so I had to correct those anyway.
When calling HTTP::redirect, you should not enclose the call in brackets. Command that you expect to issue immediately and return a value (ie, HTTP::host), you'll enclose in brackets to indicate to the TCL interpreter that that command is to be evaluated immediately. This of it like a "get" accessor command. But, for all other commands, you should not surround in brackets.
So, I've removed the brackets from your HTTP::redirect commands which should cause the correct redirects to be sent back to the client.
-Joe
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