i added in .htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
but not working with www version
i added in .htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
but not working with www version
3
Answers
Try this,
it will permanently redirect https://example.com to https://www.example.com
I don’t think you have an issue with the .htaccess file but rather with your DNS configuration. So update your DNS records so the domain will point to your cPanel server’s ip address.
If your computer is not able to resolve the host http://www.qeo.ca or qeo.ca then it’s pretty obvious that you won’t be able to access it in your browser. Your qeo.ca has these nameservers:
So go to your registrar, edit your DNS zone and update the records. Keep in mind that after DNS update it could take a few hours until you’ll be able to actually access your website.
Try this
The above code worked for me, hope it helps.