Http link with www doesn't point to the correct page

Need Help | Oracle Cloud Free Tier

I recently hosted my new WordPress website on an oracle free tier VPS using AApanel.

when I use my link “https://pixelssea.com” its is working fine.

when I use my link “https://www.pixelssea.com” it is pointing to my default WordPress page.

when I use my link “http://www.pixelssea.com” it is pointing to my apache default page.

Also I tried with cloud flare it didn’t work. Even after edit .htaccess it didn’t work!

It’s a redirection issue. Make sure to redirect HTTP traffic to HTTPS.

I need more details on what actually didn’t work with Cloudflare.

Regards

Thanks for your reply Sir,