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, 2008I think it would make sense to map out the logic before testing more. Here is what I've gathered so far:
If a request is made via HTTP to a page (an object ending with .html?) with a path that contains /secure/, you want to redirect it from HTTP to HTTPS.
-- so on the HTTP VIP, redirect any requests to /secure/ pages to HTTPS
Once the client makes a request via https to a /secure/ page, you want to rewrite the references from http to https in the page content, so the client will request those objects over https as well (to avoid the insecure content warning).
-- so enable the stream profile on the response to rewrite http:// to https://
Are there other /secure/ pages which don't have the .html file extension? Are there any requests to the HTTPS VIP which you want to redirect to HTTP?
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