Skip to content

Instantly share code, notes, and snippets.

@Chrissi2812
Created July 27, 2018 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chrissi2812/74c2b6847c9bae08aa520ebc9a5f1496 to your computer and use it in GitHub Desktop.
Save Chrissi2812/74c2b6847c9bae08aa520ebc9a5f1496 to your computer and use it in GitHub Desktop.
Remove WWW from Url
Rewritecond %{HTTP_HOST} !^{{ HOST }}
RewriteRule ^(.*)$ https://{{ HOST }}/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment