I have a rule in .htaccess
redirecting all HTTP requests to HTTPS.
I need to exclude two specific paths because they are called by a legacy application to download a file, connecting using TLS 1.0 (which is not supported by the web server anymore).
Can you please suggest what should be added to the condition below, to exclude http://wwww.example.com/folder/subfolder/file
?
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L]
Already tried to add two lines with no luck:
RewriteCond %{REQUEST_URI} !^/folder/sub/
RewriteCond %{REQUEST_URI} !^/otherfolder/sub/