Skip to content

Instantly share code, notes, and snippets.

@Chrissi2812
Created July 27, 2018 10:02
Show Gist options
  • Select an option

  • Save Chrissi2812/74c2b6847c9bae08aa520ebc9a5f1496 to your computer and use it in GitHub Desktop.

Select an option

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