WordPress Site URL redirect not working

SSL is already installed on my website and I can access it with HTTPS.

My WordPress settings are:
WordPress Address (URL): https://www.mydomain.com
Site Address (URL): https://www.mydomain.com

But when I open http://mydomain.com or http://www.mydomain.com, I am not automatically redirected to the SSL and WWW versions of my website.

I don’t want to modify the htacess file or install any plugin.

Why is WordPress’s automatic redirect not working? Can someone please help?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here