Nobody has had this problem yet it seems.
I just migrated a small WordPress website from my test server-space on iPage over to a client’s server on HostGator and while I am logged into WordPress on the new server – the website shows up fine, but if I clear my cache and come on as a new user (as my boss did) they find the silly 2014 theme with no content. But if they go to a specific link it loads fine and then so does the homepage.
I have searched this topic extensively but found nothing. I have tried other migration problems’ fixes such as:
- adding a new php.ini
- uploading new indexes to the root dir and theme dir
- saving permalink settings again, and then changing and saving again
- updating WP version
- deactivating plug-ins
- changing .htaccess lines
Why was it working perfectly on the old server location but not the new?
Y’all are my last resort. Is there some sort of cache error (or normal activity that needs overriding) going on? .htaccess? index.php? Is it HostGator’s servers maybe?
Please help!
UPDATE: A combination of changing the site/home url in WP_Options and re-saving the permalinks fixed this issue for me.
One of the reasons why wordpress urls contained in the BD pointing to the url old, running this script in phpmyadmin can solve:
Also exist the possibility that your hosting account contains a folder with your username, in the wp_options table may be included, for example upload_path:
/home/[folder_old_id]/public_html/wp-content/uploads
The behaviour you describe is not what I am seeing “But if they go to a specific link it loads fine and then so does the homepage.”:
Try this:
This will eliminate most (all?) of the possible reasons your site is not behaving.
Good luck!
Hey I faced the same issue.
If you have just copied the WordPress files for the mogration, check if you have copied the index.html file from your local site to your production site and delete it. This should fix the issue.
I actually ran into the same/ a similar problem. Homepage didn’t work but subpages did. I solved it by looking through my files on the server (FTP) and renaming a mysterious “index.htm” to “index.htm.temp“. Turns out wp took this index.htm as the default file for my landing page. Renaming and later deleting it solved the issue.
My website was migrated using the WP Duplicator PlugIn.
Well, if you consider your problem something someone “wants” to do, then you’ll find a lot of resources… for example:
https://wordpress.org/support/topic/using-a-different-wordpress-theme-for-a-single-page
Apparently you can create a page template and have the template load a different theme then all the other pages on the site. You can theoretically have every page on your WordPress install run a different theme.
Check things like home.php, front-page.php and what not to see if the homepage is running a template.
I had the same problem but then I installed wp_reset plugin. Then I opened tools section and there was an option like delete .htaccess files. I delete those files from there and the website is fine. The homepage is working fine but till now, I’ve not searched for existence of any problem because of deleting these files 🙂 . Make sure to make a backup of your website from a migrator plugin before doing such things.