[HELP] Homepage showing fresh WordPress Install After Migrating to Another Host

Rufai

Supreme Member
Joined
May 23, 2020
Messages
1,370
Reaction score
1,189
I migrated my website from a shared hosting to a VPS hosting.

The site is pointed to Cloudflare and I synchronized all the DNS records directly from Cpanel to Cloudflare and everything looks good.

But when I visit the homepage, it is showing a fresh WordPress site. But when I visit individual URLs, everything looks good.

How can I resolve it please?

Edit: When I pointed the site back to the old Host, everything looks good. But when I pointed it back to the new IP, it still shows the problem.
 
Last edited:
I'd check config if it looks matching to new hosting.
If you already fixed - Let us know what issue was
 
somewhere cached I guess, clear the cache everywhere, on your pc, in cloudflare dashboard, in browser
 
I'd check config if it looks matching to new hosting.
If you already fixed - Let us know what issue was
No I haven't fixed it. Which config are you referring to?
Is it Cloudflare DNS? I've already configured.
somewhere cached I guess, clear the cache everywhere, on your pc, in cloudflare dashboard, in browser
I have cleared the cache from both sides but it is still not fixed. I also tried using different device but still the same thing.

When I used my browser, the homepage displays correctly, but when I use incognito or different browser or phone, it shows fresh WordPress site.
 
1) Purge all caches on Cloudflare
2) Cloudflare: Development mode ON
3) Search for problem on your web-site (starting with configuration of WP)
 
I'd check config if it looks matching to new hosting.
If you already fixed - Let us know what issue was

somewhere cached I guess, clear the cache everywhere, on your pc, in cloudflare dashboard, in browser

1) Purge all caches on Cloudflare
2) Cloudflare: Development mode ON
3) Search for problem on your web-site (starting with configuration of WP)
I managed to solve the problem. I changed the website URL from http to https in WordPress settings and it is now displaying correctly.
It seems like there's no https redirect that's why.

Thanks for the help guys. I really appreciate it.
 
I managed to solve the problem. I changed the website URL from http to https in WordPress settings and it is now displaying correctly.
It seems like there's no https redirect that's why.

Thanks for the help guys. I really appreciate it.
If you use multi website or multidomain that can be the main issue...

Usually that never happened, did you tried to disable all plugins one by one and see if is related with any plugin?
 
I managed to solve the problem. I changed the website URL from http to https in WordPress settings and it is now displaying correctly.
It seems like there's no https redirect that's why.

Thanks for the help guys. I really appreciate it.
You might want to ensure that you have that implemented by now via both htaccess and Cloudflare to avoid any problems,
This can lead to anyone using the http version of your site if you forget about it
 
If you use multi website or multidomain that can be the main issue...

Usually that never happened, did you tried to disable all plugins one by one and see if is related with any plugin?
Yes I tried disabling the plugins but it didn't work. I don't use multi website/multi domain. Seems like the problem is from server not forcing https redirect.
I'm using cyber panel and when I visit the control panel dashboard, it shows that the site is nog secured even though I've installed SSL certificate and forced https redirect.
You might want to ensure that you have that implemented by now via both htaccess and Cloudflare to avoid any problems,
This can lead to anyone using the http version of your site if you forget about it
I've already implemented it via Cloudflare. Not how how to implement via htaccess but I will Google it.
 
@hideath This is how the htaccess looks like. Seems like it is already redirected right?
htaccess.JPG
 
I migrated my website from a shared hosting to a VPS hosting.

The site is pointed to Cloudflare and I synchronized all the DNS records directly from Cpanel to Cloudflare and everything looks good.

But when I visit the homepage, it is showing a fresh WordPress site. But when I visit individual URLs, everything looks good.

How can I resolve it please?

Edit: When I pointed the site back to the old Host, everything looks good. But when I pointed it back to the new IP, it still shows the problem.
Hey, hope all is well. Thanks for replying to my journey and checked out your profile you have very inspiring journeys I hope to achieve one day, I just came across your recent post. Based on what you have said, if you see the other pages and everything looks good it could be an internal issue nothing with the dns. Depending on your hosting, page builders, or configured settings. I would first check the general settings in WordPress and ensure that it is redirecting to HTTPS because there has been times when I switched domain names or just hostings it would redirect it to HTTP depending on what you have setup by your host default, if that doesn't work; if you have any licenses of plugins, I would just deactivate them and activate them again just to refresh maybe and lastly could just purge the cache or check for any updates needed for themes or plugins
 
I would first check the general settings in WordPress and ensure that it is redirecting to HTTPS because there has been times when I switched domain names or just hostings it would redirect it to HTTP depending on what you have setup by your host default
Thanks for the reply. That's exactly what happened with me too.
The site was pointing to the HTTP version and I resolved it by changing the URL from HTTP to HTTPS in WordPress settings.
you should clear some of those automatic rewrite rules cyberpanell added. 1 is enough.

be aware you should clean LSCache cache frequently or it might mass up your site.
The rewrite rules were added by me when I was trying to force the Https redirect because I thought they weren't added.
I will go and clear them and leave only 1.
Thanks
 
Back
Top