Redirect http traffic to https site using MAMP PRO interface
- Go to your Settings > Hosts > Apache tab in MAMP PRO.
- Add the following lines to your Additional Parameters for
directive:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]