Mobile app version of vmapp.org
Login or Join
Odierno851

: Site is working with http:// not with http://www My site is working if i type it as domain.com. But If I type it as www.domain.com I get an error 404 page. The domain is registered with

@Odierno851

Posted in: #Dns

My site is working if i type it as domain.com. But If I type it as domain.com I get an error 404 page.

The domain is registered with Google Apps for Business and the hosting is done with another company. I have some A records that are pointing the site to this server. However, as it appears the A records are only working halfway.

What do I have to do to make it working for both and www ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

Normally you would have an A record for the domain name example.com and a CNAME for www pointing to example.com or an A record for www with the same IP address as example.com.

As well, your website has to be set up for this. For example, in the Apache site configuration file often found in /etc/apache2/sites-available/ or /etc/local/apache2/sites-available/, you would need some thing like:

ServerName example.com
ServerAlias example.com

If you have another web server, you will need to research this second part for specific configuration details.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme