Forum Discussion
Anush
Nimbostratus
Nov 09, 2015redirection irule
Hi,
not sure is it something possible or not?
for example, site ABC.com and DEF.com both are hosted on one F5. now customer wants to redirect ABC.com/* to DEF.com/. "" means whatever it type after host, it get redirect to other site with same URI.
more example
ABC.com/image.aspx to DEF.com/image.aspx ABC.com/audio to DEF.com/audio
Thanks in advance for your help.
1 Reply
- nathe
Cirrocumulus
Anush,
How about:
when HTTP_REQUEST { if { [string tolower [HTTP::host]] eq "abc.com" } { HTTP::redirect "def.com[HTTP::uri]" } }Hope this helps,
N
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