alhall_3584
Aug 20, 2012Nimbostratus
iRule 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!
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