btidor/mailto/master/.htaccess
RewriteEngine on
# Fully-qualify domain names
RewriteCond %{SERVER_NAME} !.mit.edu$
RewriteRule (.*) https://%{SERVER_NAME}.mit.edu%{REQUEST_URI} [R=301,L]
# Enforece SSL
RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [R=302,L]
# Redirect root to webapp
RewriteRule ^$ mailto.html [QSA,L]
# Send requests for the API endpoint to the processor
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^api/v1/(.*)$ api-v1.py/$1 [QSA,L]
On Github License
Files