Hi,
thank you for your fast reply. You are right OR is || as in C style and I forgot ! -> !=. I have not tried yet, since I do not know about apache syntax and after the server upgrade I found this discussion.
Do you think I should ask in a different forum?
<If "%{REQUEST_URI} !~ m#/.well-known/acme-challenge/#" || "%{HTTP_HOST} != 'localhost'">
Redirect permanent / https://example.com/
Do you know if the above does what I want? Redirect all traffic to HTTPS except ACME challenges and localhost?
Thank you