Chris_Olson
Aug 22, 2011Nimbostratus
https redirect requires /login.cmdx
My redirect works but only if I add an extension to my site.
For example: www.mysite.com/website-uat fails. However, www.mysite.com/website-uat/login.cmdx is successful. I don't want to make my clients type in the extra /login.cmdx. How can I fix my irule to resolve that issue? See below the existing irule.
when HTTP_REQUEST {
switch [getfield [string tolower [HTTP::uri]] "/" 2] {
website { HTTP::redirect [HTTP::host] ":" 1][HTTP::uri] }
website-uat { HTTP::redirect [HTTP::host] ":" 1][HTTP::uri] }
website-stg { HTTP::redirect [HTTP::host] ":" 1][HTTP::uri] }
website-sales { HTTP::redirect [HTTP::host] ":" 1][HTTP::uri] }
}
}