RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://192.168.1.127/$1 [R,L] Options +Indexes