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 ...
cin_75063
Nimbostratus
Sep 16, 2009Thank you, Aaron
You are right. I don't want to redirect URIs whose first directory is "abc".
I don't need to check the second directory.
These are some examples which I want to exclude from redirection.
1. /abc/sample.html
2. /abc/0001
3. /abc/0001/sample.html
Also, in 9.x/10.x you can use HTTP::redirect instead of "redirect to".
You mean I can replace "redirect to xxxxxxx" with the line like "HTTP::redirect https://[HTTP::host][HTTP::uri]"?
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