Site not opening without www

My site https://www.saugatnpl.com.np works fine. But if I remove the www. part i.e https://saugatnpl.com.np, my site does not work. Also it works when I remove https:// part as well i.e. saugatnpl.com.np. How to make my site open with https://saugatnpl.com.np?

It seems that only your www.saugatnpl.com.np has a ssl certificate. Where did you get your SSL certificate? using InfinityFree tool or using an external service?

If on external services, please make sure that the Common Name in generating CSR are pointing to both www and non-www domain name.

2 Likes

Your ssl certificate only for https://www.saugatnpl.com.np/ and sir you are using blogger please ask on blogger community or forums

You can use htaccess to rewrite the url from non www. to www. by using this simple code:


RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]

As for the SSL Problem, Cloudflare is a good way to go to resolve this problem.

I just checked your DNS and your records have now pointed to us. I don’t think you’ll need the ghs.google.com record though.

And since you transferred from Blogger to InfinityFree, here’s a guide that will help you get set up quickly:

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