0

How to put www in front of my website now we are getting like https://vitalticks.in

if we enter www.vitalticks.in we are getting below error enter image description here

2
  • are you using nginx or apache? please share site-available conf settings as well. I think the issue is with your host configuration Sep 18, 2019 at 4:25
  • Are you use wildcard ssl ? Sep 18, 2019 at 5:02

2 Answers 2

0

DNS_PROBE_FINISHED_NXDOMAIN

is an error which indicates a non-existent domain. In other terms, the DNS cannot find the IP address corresponding to the domain name. Thus, users receive this error on Google Chrome and are unable to reach the website they are trying to access.

  1. need to add DNS record for subdomain - www
  2. change magento base url to https://www.vitalticks.in/
  3. add redirect to .htaccess

    RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

0

please try to add below code in .htaccess :

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.example\.com
    RewriteRule (.*) http://www.example.com/$1 [R=301,L]
</IfModule>

if you are using nginx than check with below url :

https://www.digitalocean.com/community/questions/redirecting-non-www-to-www-in-nginx

hope its work for you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.