Forum Discussion
domain redirect
Hi Gents,
I have put this to the VS at clientside.
Code when HTTP_REQUEST { set host [string tolower [HTTP::host]] switch $host { "; - "; - "; { HTTP::redirect "; } } }
But I don't know where to put the following response on serverside.
when HTTP_RESPONSE { if { [HTTP::header values Location] contains "; } { HTTP::header replace Location [string map { } [HTTP::header value Location]] } }
Can you tell me where to put the serverside irule?
Thanks DPIT
As said by Habib, that is 1 single rules working on different events. You should start learning Irule basics.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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