RewriteEngine on RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} RewriteRule ^([A-Za-z]+)/style/(.*)?$ /stylesheets/$2?project=$1 RewriteRule ^([A-Za-z]+)/confirm[/]?$ /confirm.php?project=$1 RewriteRule ^([A-Za-z]+)/errors/(.*)$ /product.php?project=$1&$2 RewriteRule ^([A-Za-z]+)/thanks[/]?$ /thanks.php?project=$1 RewriteRule ^([A-Za-z]+)[/]?$ /product.php?project=$1