This is 100% not script issue but anyway...
When you do a migration you should be aware that there are several caches that you should flush. To name a few:
- Browser cache
- DNS propagation
- CloudFlare or similar stuff
- CDN (update source IP)
- Etc
Try doing that and if it doesn't work ask your hosting company, they will have a more solid answer to this.