Skip to content

Instantly share code, notes, and snippets.

@l4ci
Created January 9, 2018 10:14
Show Gist options
  • Select an option

  • Save l4ci/c5d3952433f302267636e1e07bd525b2 to your computer and use it in GitHub Desktop.

Select an option

Save l4ci/c5d3952433f302267636e1e07bd525b2 to your computer and use it in GitHub Desktop.
# no-www
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment