Forum Discussion
alhall_3584
Nimbostratus
Aug 20, 2012iRule to redirect
I'm new at this and I trying to redirect an https (443) request to an Apache/Tomcat server with the url of . When I try to connect to it with I get an error. Please assist. Thanks!
Richard__Harlan
Aug 20, 2012Historic F5 Account
You can create a iRule that does the following like Nitass sates
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::uri "/site.html"
}
The iRule when then cause the URI to to the server to be /site.html. Now if you want you change change it to a full redirect this will force the customer URI to change so if they bookmark the site it will be correct.
HTTP::redirect "http://[HTTP::host]:8080:/site.html or
HTTP::redirect "https://[HTTP::host]/site.html
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