I have written .htaccess: RewriteEngine On RewriteCond %{SERVER_PORT} 443 RewriteCond %{HTTP_HOST} !^www\.fullpcrepair\.com$ [NC] RewriteRule ^(.*)$ https://www.fullpcrepair.com/$1 [L,R=301] But I can still open www.fullpcrepair.com and also http://www.fullpcrepair.com How to restrict that ?
try this RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.fullpcrepair.com/$1 [R,L]