After a database server migration, Ive noticed that GoogleBot started getting errors when trying to crawl my site.
The reason seems to be that its hitting my site via IP address (and due to my config setup, my PHP scripts try to hit the old database server, which has been shut down). When the site is accessed by correct hostname, it uses the new db server.
I can fix this by pointing the 'ip address' config to use the new db server, but ideally I want to tell GoogleBot (and also Bing) to stop accessing via IP, and use hostname instead.
In Google Webmaster tools it also shows a lot of entries for 'sites linking in' to my website, which are actually listed as the IP address of my site, as if it were a different site.
I do not want to lose SEO value by making the wrong move.
Should I change my website to stop responding on IP address? Or set up http redirects from IP address/url -> hostname/url ?
I already have "rel canonical" urls which include the FQDN on a lot of my pages, but Google does not seem to respect them, or at least it continues to hit the IP address for those pages