Skip to content

Instantly share code, notes, and snippets.

@BurlesonBrad
Created October 23, 2019 11:40
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 BurlesonBrad/65bbc80a82a5d292297933961bccde93 to your computer and use it in GitHub Desktop.
Save BurlesonBrad/65bbc80a82a5d292297933961bccde93 to your computer and use it in GitHub Desktop.
Get *ALL* domain addresses pointed in the *RIGHT* direction πŸ‘
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://domain.com%{REQUEST_URI} [L,NE,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment