troubleshooting Question

Apache http to https except 2 paths

Avatar of Dennie
Dennie asked on
Apache Web ServerWeb Servers
3 Comments1 Solution241 ViewsLast Modified:
Hi,

I've got this rewrite rule to redirect all http request to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

I want to make an exception for 2 paths (/a and /b). These paths can only be accessed over HTTP. How do I do this?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros