It doesn’t matter much, the best thing is to have only a single version, all others redirect to it with a 301. This with www (and/or variations) and HTTP/HTTPS (latter preferred over there former).
Care to explain more? The original question was answered and solved. This to me means: “Is doing this the correct thing so mydomain.com is the main domain, intended as website (I suppose since I can’t find any other meaning)?”
When I implemented the solution - it started to resolve back to the www version but I’m not sure if that is correct. Then I switched it and my url started acting up in my browser. So I wasn’t sure if it should be resolving to the www or sans www and wanted to make sure.
You need to have both in the DNS dashboard, both with .
Unfortunately there is no way to check if the configuration is correct without knowing the exact domain name or at least a more specific description of what “acting up” means. With the rule above it should redirect everything to www.example.com, possibly excluding http://www.example.com if there isn’t a redirect for HTTP → HTTPS (like the switch in the SSL/TLS settings).