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 ...
hoolio
Cirrostratus
Feb 07, 2008Hi,
Something like this?
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, if you use your email address as your login, you're email address will appear in search engine results and is susceptible to spam.
Aaron
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