Categories
Web Development

Redirect entire domain to HTTPS

Add the following to your .htaccess file

<IfModule mod_rewrite.c>
	RewriteEngine On

	RewriteCond %{SERVER_PORT} 80 
	RewriteRule ^(.*)$ https://mydomain.co.uk/$1 [R,L]
</IfModule>

 

Leave a Reply