Last active
October 12, 2015 20:12
-
-
Save patrickgilmour/4bf4dc315e182bccb218 to your computer and use it in GitHub Desktop.
MAMP - Force Host to use https for all pages using rewrites in MAMP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Paste the following into the Additional Parameters for <Virtual Host> field of the "Hosts" tab in MAMP (Pro) | |
# Restart MAMP | |
# Now when you type http://thishost MAMP with forward the request to https://thishost | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment