Forum Discussion
ops_69313
Nimbostratus
Nov 10, 2010Redirect problems
I have a domain http://www.123.com that I need to redirect to http://www.abc.com but I need to not redirect any sub domain like http://zzz.123.com or any uri like http://www.123.com/um I need to redirect them to https. can anyone help with this?
- hoolio
Cirrostratus
Hi Ops,when HTTP_REQUEST { Check for host/uri match if { "[HTTP::host][HTTP::uri]" eq "www.123.com/" }{ Send hardcoded redirect HTTP::redirect "http://www.abc.com/" } else { Redirect to same host/URI via https HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }
- ops_69313
Nimbostratus
Thank you it works great!!
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