Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save antoineguilbert/94ad98d32051e9014258cc0252574225 to your computer and use it in GitHub Desktop.
Save antoineguilbert/94ad98d32051e9014258cc0252574225 to your computer and use it in GitHub Desktop.
RewriteEngine on
RewriteCond %{SERVER_NAME} =yoursite.com
RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment