I am using bolt-cms with htaccess to redirect the root of the URL to the /public folder. Now I need to redirect http to https. How can I concatenate these two rules?
Here's my htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC]
RewriteRule ^ %1 [L,NE,R=301]
RewriteRule ^((?!public/).*)$ public/$1 [L,NC,QSA]
RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.mecanalisis.com.ar%{REQUEST_URI} [L,NE,R=301]