Hello there!
I need two things to happen, one if in the root directory, forward to /forum. Second, if non secure, forward to https. It’s forwarding to forum but only seems to force https if I visit the web root. If I enter http://site.com/forum, it won’t force https in that instance. Here’s my latest attempt:
RewriteEngine On
RewriteRule ^$ /forum [R=301,L,QSD]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit