Forum Discussion
Lucilius_223799
Nimbostratus
Jan 14, 2016Redirect issue (Global http to https but one website)
Hello everyone, My goal was to redirect everything to https but one website. This website has to stay on http. I have with some looking around and working up created the following code: ...
Brad_Parker_139
Nacreous
Jan 15, 2016Take the http:// part out of your first switch conditional. also you may want to use the glob parameter in the switch. IE switch -glob then make your condition end with a * since I assume you may have some longer paths and possible query parameters. HTTTP::uri includes query parameters.
Lucilius_223799
Nimbostratus
Jan 15, 2016Thank you for the answer Brad, I changed the iRule with your recommendations. However the pages that shouldn't be redirected to https are still going to https from what I can see and are stuck in an a redirect loop. I wonder if it is something on the other side that is causing that issue though and not the iRule itself.
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