Options +FollowSymLinks -Indexes RewriteEngine On RewriteCond %{SERVER_PORT} !=443 RewriteRule ^([A-Za-z]+)/confirm/?$ https://%{SERVER_NAME}/$1/confirm RewriteCond %{SERVER_PORT} !=443 RewriteRule ^([A-Za-z]+)/errors/(.*)$ https://%{SERVER_NAME}/$1/errors/$2 RewriteCond %{SERVER_PORT} !=443 RewriteRule ^([A-Za-z]+)/thanks/?$ https://%{SERVER_NAME}/$1/thanks RewriteCond %{SERVER_PORT} !=443 RewriteRule ^([A-Za-z]+)/?$ https://%{SERVER_NAME}/$1 RewriteRule ^([A-Za-z\d]+)/style/(.*)[/]?$ stylesheets/$2?project=$1 RewriteRule ^([A-Za-z\d]+)/confirm[/]?$ confirm.php?project=$1 RewriteRule ^([A-Za-z\d]+)/errors/(.*)$ product.php?project=$1&$2 RewriteRule ^([A-Za-z\d]+)/thanks[/]?$ /thanks.php?project=$1 RewriteRule ^([A-Za-z\d]+)[/]?$ product.php?project=$1