Mobile app version of vmapp.org
Login or Join
Heady270

: For something like this, who your registrar is doesn't matter. Once you have registered the domain, then you also control all subdomains, including www. Your DNS settings look correct.

@Heady270

For something like this, who your registrar is doesn't matter. Once you have registered the domain, then you also control all subdomains, including

Your DNS settings look correct. Based on your cname settings, your www sub-domain should resolve to the same IP address that your non-www domain resolves to. You can test this by pinging both and checking that the IP address matches:

$ ping website.co.uk
64 bytes from myhost (192.168.55.55)
$ ping website.co.uk 64 bytes from myhost (192.168.55.55)


Make sure the IP addresses given match (the 192.168.55.55 part in my example). If they don't you have a DNS problem.

Once DNS is set up correctly, you have to make sure the webserver is set up correctly. Again, it sounds like you are trying to do the correct thing and have a redirect in place. You say that you use a "302". I would suggest trying to use a "301 permanent redirect". You can test that it is correct by using the following command and seeing a response similar to the following:

$ curl -s -D - www.website.co.uk/ HTTP/1.1 301 Moved Permanently
Location: website.co.uk/ Content-Type: text/html; charset=UTF-8

<html><body><p>Moved permanently: <a href="http://website.co.uk/">http://website.co.uk/</a></p></body></html>

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Heady270

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme