I need to set https on certain pages. To do this, in my .htaccess I have:
RewriteCond %{HTTPS} off
RewriteRule ^(login|message|enter|view|edit|submit)(.*)/?$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,NC,L]
However this only works when the url is like mysite.com/login and not for mysite.com/de/login.
How can I get all these urls to be https regardless of what’s infront of it?
Replace your code with: