Help for Qualifying for HSTS Preload List

Hello again @schoen . Thank you for your gentle reply. I appreciate it. Yes, I in fact figured out on my own that that is precisely what I had to do, which I did in fact do yesterday. As a result, my submission to the HSTS Preload List was accepted, and I am now waiting to be included on the list.

BTW, in case you didn’t realize it, I was NOT blaming Let’s Encrypt for not issuing me a certificate for both variations of my domain. After re-reading the Certbot instructions, I fully realized that the responsibility fell on me to properly submit my data to Certbot.

While this is not directly related to my Let’s Connect setup, I am wondering if you can offer some suggestions regarding my redirects.

As I stated above, after setting up SSL/TSL properly on my server, after much experimentation, I used a RedirectMatch in MAMP PRO’s httpd.conf file to redirect all http traffic to https instead.

However, in order to qualify for the HSTS Preload List, I had to redirect to billkochman.com, instead of to www.billkochman.com, because the latter is a subdomain of the former.

What I used above . . .

ServerAdmin wordweaver777@gmail.com
ServerName billkochman.com
RedirectMatch 301 (.*) https://billkochman.com$1

. . . works just fine. In other words, all traffic to http://billkochman.com is properly redirected to https://billkochman.com.

Furthermore, all requests made to http://www.billkochman.com are also automatically redirected to https://www.billkochman.com.

The only issue is that if a person uses http://billkochman.com in their web browser, they are redirected to https://billkochman.com.

I want ALL traffic redirected to https://www.billkochman.com – or to the corresponding secure page under that address – the reason being that this is the primary, preferred address that I use in the Google Search Console.

I assumed that I have to add a second Redirect, or possibly RedirectMatch, to the one I have already noted above, but I can’t seem to get it right; and – as Apache even notes on their website – priority is being given to the first RedirectMatch.

So, what should I add to the RedirectMatch I am already using, so that after a person is redirected to https://billkochman.com – which meets HSTS’s requirements – they are immediately redirected a second time to https://www.billkochman.com?

That is all I am trying to accomplish, but have failed thus far. Is it possible to do two consecutive redirects in a row?

Thank you Seth.

Bill K.