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