unable to access the website after set up redirect non www to www

February 11, 2016 568 views
Apache DNS

First, i setup virtual hosts by follow the tutorial at

I can access to the test page under the directory /var/www/example/public_html. But it is only , not

After that, i setup redirect non www to www by following the tutorial at

Now, i can't access both of the website. What happen to this?

1 comment
  • Hey there,

    Can you confirm the domain name? I have a feeling that you may not have the 'www' subdomain configured in your domain's DNS zone.

    Happy coding,

    Jon Schwenn
    Platform Support Specialist

Be the first one to answer this question.