Forum Discussion
Patrick_Berthia
Nimbostratus
Feb 10, 2006HTTPS redirect
Hi,
Im trying to make this work but not getting the expected results.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::redirect https://[HTTP::host][HTTP::uri "/some_java_app"]
}
}
I just want to force the users that are using the http://mysite.domain.com to redirect them to https://mysite.domain.com/some_java_app
Any tips would be greatly appreciated
- What results are you getting? Odds are the HTTP::uri command you have embedded is not returning the updated value that you are assigning it within the command. This would cause an infinite loop if you have the same iRule on the 80 and 443 virtuals.
when HTTP_REQUEST { if { [HTTP::uri] equals "/" } { HTTP::redirect "https://[HTTP::host]/some_java_app" } }
- Patrick_Berthia
Nimbostratus
Hi, - JRahm
Admin
How are your virtual servers configured? Are you using a wildcard virtual server (10.10.10.10:0) or virtual servers for each service (10.10.10.10:80 and 10.10.10.10:443)?
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