Forum Discussion
scottl_82413
Nimbostratus
Feb 07, 2008Don't redirect to SSL if URI exists
I'm trying to create an irule that will redirect:
http://www.mysite.com to https://www.mysite.com
however, if someone goes to http://www.mysite.com/training
I don't want ...
scottl_82413
Nimbostratus
Feb 07, 2008Thanks for the reply...still not working...it still redirects to https://www.mysite.com/training
I think I needed to add quotes to the /training, because I got an error without them
when HTTP_REQUEST {
Check if requested path isn't /training
if {not ([HTTP::path] eq "/training")}{
Redirect request to the same host/uri, but via HTTPS
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
Also thanks for the heads up on the email. I didn't realize it used my login for the posting name until after I'd posted, and didn't see any way to change it.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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