One site has three domains. I have acquired the SLL certificate for the main domain. For automatic forwarding, I redirect:

RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L] 

How to prescribe a condition here so that the redirect is valid only for the main domain? because for other domains I do not have a SLL certificate - and the redirect is automatic ..

    1 answer 1

    If it is still relevant - add another condition that checks the name of the site. Like that:

     RewriteCond %{HTTP_HOST} ^www.сайт1.com [NC]