Forum Discussion
6 Replies
Sort By
- Dennis_Andrade_Nimbostratus
You can use the following irule to do that:
when HTTP_REQUEST { HTTP::redirect https://[HTTP::host]/mobile/cplogin.aspx }
- What_Lies_Bene1Cirrostratus
Are you sure about that '@'? Anyway, assuming it should be a period '.';
when HTTP_REQUEST { if { [HTTP::uri]] equals "/" } { HTTP::redirect https://[[HTTP::host]]/mobile/cplogin.aspx } }
- Kevin_StewartEmployee
Try this:
when HTTP_REQUEST { if { [HTTP::uri] equals "/" } { HTTP::redirect "https://[HTTP::host]/mobile/cplogin.aspx" } }
Do you specifically mean "testsiteone@xyz.com", with an ampersand in the URL?
- Joe_5599_134300NimbostratusI meant https://testsiteone.xyz.com/mobile/cplogin.aspx
- Joe_5599_134300NimbostratusWhen would you use this if { [HTTP::uri] == "/"
- Kevin_StewartEmployeeThis essentially means "if the URI is blank (you didn't enter a URI in the request), the redirect to the /mobile URI". If you don't specify a URI in the request, it will always at the very least equal "/". You need a conditional check like this to prevent a loop.