Question

I have recently set up my domain, but my problem is when I navigate with/without www, the results are inconsistent. They are supposed to point to the same page, but sometimes, the www site has broken links to non-www components (e.g.: when I load http://www.my-domain.com, and if I have a resource referred as http://my-domain.com/navi.css, it breaks)

Have tried 301 rewriting, but it's not always consistent. What do I need to do to ensure 100% uptime for my site?

Was it helpful?

Solution

This could be because of a couple of reasons:

  • Your DNS has not propagated yet, meaning if you recently just changed DNS on the domain name give it up to 48 hours and flush cache from your browser.
  • The domain DNS is pointing to different IP addresses from your www. or * A records.
  • There is a problem with the hosting configuration (unlikely if you are using CPanel or any hosting control panel as this is mostly automated).

Also you should pick either with or without www for consistency and better SEO results. Pick one and stick to it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top