Forum Discussion
Eddy_161863
Nimbostratus
Oct 06, 2015f5 URL redirection
I am trying to setup a redirect based on the host in the URL. Is there any way to match two host values in the url and if it matches one of the condition, then redirect. I only want to change the hos...
Eddy_161863
Nimbostratus
Oct 06, 2015Because some of the URL's work ok when I check for "abc/" in the host while some work with only "abc". this is a strange behavior that I have never seen before. looks like client is passing different host for different URL's. So the condition is if client simply enters in the url , they should get redirected to http://abc.xyz.com or [HTTP::uri] they should get redirected to http://abc.xyz.com/[HTTP::uri].
What is the best way to redirect the host and keeping the URI?
- Stanislas_Piro2Oct 08, 2015
Cumulonimbus
In URL http://abc/login.aspx?login=user&password=pass : - HTTP::host is abc - HTTP::uri is /login.aspx?login=user&password=pass - HTTP::path is /login.aspx - HTTP::query is login=user&password=pass So, there is no / character in HTTP::host
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