Skip to content

Instantly share code, notes, and snippets.

@whitehat101
Created May 23, 2017 05:14
Show Gist options
  • Save whitehat101/ed4ec2abf088b59d05cd28424f3a4349 to your computer and use it in GitHub Desktop.
Save whitehat101/ed4ec2abf088b59d05cd28424f3a4349 to your computer and use it in GitHub Desktop.
Let's Encrypt htaccess 301
RedirectMatch 301 ^(?!/\.well-known/acme-challenge/).* https://mydomain.example$0
Alias /.well-known/acme-challenge /var/www/letsencrypt/.well-known/acme-challenge
Alias /.well-known/acme-challenge /var/www/letsencrypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment