Skip to content

Instantly share code, notes, and snippets.

@joanna-s
Created August 25, 2020 15:48
Show Gist options
  • Save joanna-s/87fff6d368101d0149d8d286ca11dcde to your computer and use it in GitHub Desktop.
Save joanna-s/87fff6d368101d0149d8d286ca11dcde to your computer and use it in GitHub Desktop.
## If URL is SSL challenge (i.e. /.well-known/acme-challenge/[unique-id]) - relating to SSL renewal which was failing because the challenge URL was redirecting to skiarmadillo.com
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/.well-known/(.*) [NC]
RewriteRule (.*) https://www.domain.co.uk/ [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment