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

  • 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



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]


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]

if you are using nginx than check with below url :


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.