Tweaks for htaccess

These lines will restrict access to certain IP addresses, force https and redirect a www url to non-www.

Add them straight after RewriteEngine On

 RewriteCond %{REQUEST_URI} ^/admin
 RewriteCond %{REMOTE_ADDR} !=xxx.yyy.zzz.aaa
 RewriteRule ^(.*)$ - [R=403,L]

 RewriteCond %{HTTPS} off
 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
 RewriteRule ^(.*)$ https://%1/$1 [R=301,L]