ana dizinde eğer ".htaccess" diye bir dosya yok ise oluşturun.
ve içeriğine aşağıdaki kodu yazın. Bu kod hem https olarak hemde www olarak açmaya zorlayacaktır sitenizi.
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteCond %{HTTP_HOST} ^(.*)$ [NC]
RewriteRule (.*) https://www.%1/$1 [R=301,L]
</IfModule>