I am currently using the following htaccess to redirect my site to https and www if not already using it.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
However, I have a subdomain forum.example.com that cannot be redirected to https as it is a forum and has content that isn’t secure.
When I use the above code in my htaccess, it redirects the forum to https://www.example.com/forum instead of just forum.example.com.
(Basically I need an exact copy of the htaccess from molten-wow.com)
Notice how they have https, but the forum does not redirect.
Any advice? If I am being unclear or you need clarification on anything please let me know and I’ll clarify.
Thanks in advance
Try