Htaccess rewrite whole site but keep lets encrypt well-known out of rewrite

By.

min read

My profile

Share this:

[code:1:1355688425]RewriteEngine on

RewriteBase /
RewriteRule ^(.well-known)($|/) – [L]
RewriteRule ^(.*)$ https://www.newdomain.nl/$1 [R=301,L][/code:1:1355688425]

This will rewrite all files and paths [b:1355688425]except for the SSL verification virtual folder .well-known[/b:1355688425] to the new domain

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *