I am coding a website that uses SSL for most of the website.
At the moment I’m using a htaccess rule to add www to the URL, see the rule below:
RewriteCond %{HTTP_HOST} ^bettingproperties.com$ [NC]
RewriteRule ^(.*)$ http://www.bettingproperties.com/$1 [L,R=301]
How can I make it so that it will detect https and do the same also.
I found out that I can do this just by using the following.
Thanks for the help.