haxzorian_35595
Nov 10, 2011Nimbostratus
Redirect URI issue HTTP vs HTTPS
I have two virtual servers, both pointing to the same vip. One for HTTP and one for HTTPS. I have an iRule to take the URI passed and redirect it to a given link. This iRule is on both VS, however it only works when a user puts in https://xyz.com/uri. Should a user put in http://xyz.com/uri it comes up with a page not displayed error.
Here is the code:
timing on when HTTP_REQUEST { switch [string tolower [HTTP::uri]] { "/heroupdate" { HTTP::redirect "http://custsupport.xyz.com/app/answers/detail/a_id/448" } "/xupdate" { HTTP::redirect "http://custsupport.xyz.com/app/answers/detail/a_id/459" } "/survey" { HTTP::redirect "https://custsupport.xyz.com/ci/documents/detail/5/67" } "/htcheroupdate" { HTTP::redirect "https://custsupport.xyz.com/app/answers/detail/a_id/448" } "/desireupgrade" { HTTP::redirect "https://custsupport.xyz.com/app/answers/detail/a_id/460" } "/axisupdate" { HTTP::redirect "https://custsupport.xyz.com/app/answers/detail/a_id/463" } "/wildfireupdate" { HTTP::redirect "https://custsupport.xyz.com/app/answers/detail/a_id/464" } "/classes" { HTTP::redirect "http://www.xyz.com/Personal/Wireless/Smartphone-Help.aspx" } } }
Anyone know what might be the issue? I'm stumped.