RewriteCond %{SERVER_PORT} ^443$ RewriteCond %{HTTP_HOST} !^$ RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]