DevHeads.net

alias and redirect

Users!

...
Alias "/.well-known/acme-challenge/" "/var/run/acme/acme-challenge/"
<Directory "/var/run/acme/acme-challenge">
AllowOverride None
# Options None
Options All +FollowSymLinks
Require all granted
</Directory>

RedirectPermanent / <a href="https://subdomain.domain.ext/" title="https://subdomain.domain.ext/">https://subdomain.domain.ext/</a>
...

This configuration redirects also
<a href="http://subdomain.domain.ext/.well-known/acme-challenge/" title="http://subdomain.domain.ext/.well-known/acme-challenge/">http://subdomain.domain.ext/.well-known/acme-challenge/</a>
to
<a href="https://subdomain.domain.ext/.well-known/acme-challenge/" title="https://subdomain.domain.ext/.well-known/acme-challenge/">https://subdomain.domain.ext/.well-known/acme-challenge/</a>

How can I bring about that
<a href="http://subdomain.domain.ext/.well-known/acme-challenge/" title="http://subdomain.domain.ext/.well-known/acme-challenge/">http://subdomain.domain.ext/.well-known/acme-challenge/</a>
is not redirected, but
<a href="http://subdomain.domain.ext/" title="http://subdomain.domain.ext/">http://subdomain.domain.ext/</a>
and
<a href="http://subdomain.domain.ext/other" title="http://subdomain.domain.ext/other">http://subdomain.domain.ext/other</a>
is redirected to
<a href="https://subdomain.domain.ext/" title="https://subdomain.domain.ext/">https://subdomain.domain.ext/</a>
and
<a href="https://subdomain.domain.ext/other" title="https://subdomain.domain.ext/other">https://subdomain.domain.ext/other</a>?

Kind regards,
Jaap van Wingerde.