Thank you so much for your extensive answer with all good-to-know information!
I have now changed the settings to “Redirect only (Insecure). However, the last part (insecure) sounded a bit scary.
But I have made a test purchase and I was able to download the product. But it will be more interesting to see how it works next time a .htaccess files has been created in the woocommerce_upload folder.
How do I attach a file with a screenshot of my preferences?
Kind regards
Svante