Forum Discussion
Ashley_Penney_5
Nimbostratus
Oct 09, 2008http/https redirection based on URI
Hi,
I'm crafting two new irules, with the intention of keeping people https if the uri contains /secure/, and http if not. I know this is probably a terrible idea, but it's what I've b...
hoolio
Cirrostratus
Oct 09, 2008A stream profile allows you to rewrite specific strings in the request and/or response body. The rule enables the stream profile only in specific cases, so the stream filter isn't applied to request bodies, or non-text responses, etc.
If you can provide an anonymized sample of a few requests to /secure/ pages which contain references to http content and the fully qualified links it references, I can try to help tailor the rule. I'm imagining something like:
http://site.example.com/secure/page1.asp (needs to be redirected to https://...)
References:
http://site.example.com/images/image1.jpg
http://site.example.com/images/image2.jpg
http://site.example.com/images/image2.gif
http://site.example.com/images/style1.css
https://site.example.com/secure/
References:
http://site.example.com/images/image3.jpg
http://site.example.com/images/image4.jpg
http://site.example.com/images/image5.gif
http://site.example.com/images/style1.css
Aaron
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