Forum Discussion
cin_75063
Nimbostratus
Sep 16, 2009Redirecting HTTP to HTTPS except certain URLs
Hi
I want to redirect all HTTP request to HTTPS except certain URIs("/abc/0001, /abc/0002, .... /abc/000n").
I'm very new to iRule, so I'd appreciate it if someone could review ...
hoolio
Cirrostratus
Sep 16, 2009Hello,
That looks like a good start. Can you provide a few more example URIs that you don't want to redirect? Is there anything after /abc/000n?
It looks like you want to take the first directory in the path and check it against a datagroup containing strings. Do you also want to check the second directory to see if it's numeric or four digits or something else?
Also, in 9.x/10.x you can use HTTP::redirect instead of "redirect to".
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