Encrypt domain EXCEPT the frontpage

I use this to force a webpage to https

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://domain.tld/$1 [R,L]

and it works fine.

But now I need to exclude the frontpage domain.tld/index.php so it runs http.

How to do this the best way?

Best regards

Although this is really nothing to do with Let’s Encrypt…
Adding something like this might do the trick:

RewriteCond %{REQUEST_URI} !^/.
RewriteCond %{REQUEST_URI} !^/index.php

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.