Following problem, i want to route all requests from http to htts, after this route all requests wich cause an 404 to route.php script.
But i dont know, how to tell mod_rewrite to 1st use rule one, and than rule two?
My Rule looks like this:
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}/_playground/$1
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://localhost/_playground/route.php?to=$1
enter code here