I have a rule in my .htaccess to redirect all HTTP traffic to HTTPS, and I'm trying to exclude some specific URL from redirect, so I added the negation exclusion rule:
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/my_url
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
But this doesn't work, http://example.com/my_url redirects to front page example.com. Is it interfering with some other rules? All are standard Drupal core .htaccess.