Forum Discussion
DPIT_323803
Nimbostratus
Oct 05, 2017domain redirect
a lot domains should be redirected to one single domain
DPIT_323803
Nimbostratus
Oct 19, 2017Hi 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
Habib_Ulla_Khan
Nimbostratus
Oct 19, 2017You can consolidate both irules into one and apply on same VIP.
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