What to edit in .htaccess file

I want to change my web address from http to https, I have already activated the SSL certificate. When I tried to edit the .htaccess file, I found the following “redirectMatch 301 ^(.*)$ https://www.9n1ca.info.np/”, but my web address is still http, so please advise me what to edit in .htaccess file to direct the http to https address. If any further step is required then please suggest me.

Try to replace what you have on your .htaccess file with the code snippet present on this article:

https://infinityfree.net/support/how-to-force-all-traffic-to-https/

2 Likes

I did as you suggested and replaced the code…but unfortunately, now my page is not being open either with http or https.
www.9n1ca.info.np

You would have to install a SSL certificate for your domain on your hosting account, or if you didn’t generate a new one, do it with the “SSL Certificates” section of the Client Area. After generating the SSL certificate, please follow the “Installing an existing certificate” part of this article to install a SSL certificate for your domain on your hosting account.

4 Likes

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