Skip to content

Instantly share code, notes, and snippets.

@djprmf
Created December 15, 2019 10:09
Show Gist options
  • Save djprmf/e36851f33da0a2586a416f70d7afd84e to your computer and use it in GitHub Desktop.
Save djprmf/e36851f33da0a2586a416f70d7afd84e to your computer and use it in GitHub Desktop.
#Force www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301,NC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment