Skip to content

Instantly share code, notes, and snippets.

@DrewDouglass
Created September 28, 2018 20:15
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 DrewDouglass/1a336c2e124aa13ec8d6bc8e9f4ca83f to your computer and use it in GitHub Desktop.
Save DrewDouglass/1a336c2e124aa13ec8d6bc8e9f4ca83f to your computer and use it in GitHub Desktop.
a2 redirect from ahosted subdomain
RewriteCond %{HTTP_HOST} !https://domainnamehere.org$ [NC]
RewriteRule ^(.*)$ https:// domainnamehere.org/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment