DNS does strange redirect when https is used

When I open my domain using www.site.com it loads fine, SLL - fine.
https://www.site.com - fine.
When I open it by typing https://site.com - it redirects to another website that I’m hosting. I’ve checked the server config files - 99.9% certain there are no issues there.
Since I don’t know much about DNS, please help.
These are my current records:
A * IP
A site.com IP
A www IP

What am I missing or have done wrong?

Thank you.

Correction. Most likely a server issue. For some reason XAMPP redirects all SSL requests that don’t include www to the first SSL .pem in httpd-ssl.conf. If anyone has experienced this issue, please let me know how to fix it.

Thank you.

You should check your Redirect, Bulk Redirect, and Pages rules to see if you have a rule there that causes the redirect.

<Directory "D:/art">
Order allow,deny
Allow from all
AllowOverride All
Require all granted

Could not find a single redirect anywhere.

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