RewriteCond %{SERVER_PORT} !=443 RewriteCond %{REQUEST_URI} =/test.php RewriteRule (.*) /