Forum Discussion
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] }
}
}
- hooleylistCirrostratusHi Chris,
if {[HTTP::path] ends_with "/"}{ HTTP::path "[HTTP::path]login.cmdx" }
- Chris_OlsonNimbostratus
Thanks Aaron. We will work with this. Unfortunately, I am a network admin and don't know enough about the webapp to make the required change.
- Chris_OlsonNimbostratus
I am having diffculty combining the rules. The logic appears to be what is needed but I don't understand the error.
01070151:3: Rule error:
- hooleylistCirrostratusI had a typo in my first reply:
- Chris_OlsonNimbostratusThanks Aaron, That did it!
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