Website with address ' www' is not working

.htaccess, php, webserver

Solution

check your dns

you may be need added record DNS www IN CNAME domain.com.

send mail to support hosting.

It might be required to add a virtual host for the domain with www and add a permanent redirect in the web server configs eg: httpd.config or nginx.conf. Assume the domain is example.com and the web server is apache.

 <VirtualHost *:80>
     ServerName www.example.com
     Redirect permanent / https://example.com
 </VirtualHost>

Enjoy=)

Problem

I have a site , for example test.com. While i take the site as 'test.com' in the browser i getting the site. But while i try with 'www.test.com'.Its showing server not found issue. It doesn't have any htaccess file ,also there is nothing in the index.php page that make this issue . Any one have any idea

Original source