moving to new shared hosting server

I currently have my multisite network setup on a shared hosting account. I'm moving to a new shared hosting account. When I try to navigate to the domain, I get a redirect loop. The browser is trying to go to mydomain.com/wp-signup.php?new=mydomain.com. I am able to navigate to any of the subdomain.mydomain.com sites easily. I've been searching all over and I'm unable to come up with the answer!

Comments 7

What about basics - like switching over to your new nameservers and IP at your new hosting account? If you don't have a dedicated IP, I'd recommend that.

Also, within WordPress make sure your settings in wp-config.php match with the database:
in wp-config DOMAIN_CURRENT_SITE should be something like 'example.com'
This should match the domain in your database under wp_site as well as looking in wp_options for the option_value of siteurl and home (although they are probably http://example.com)

Checking all of these will help us make sure all bases are covered. If you can get into the root admin (http://example.com/wp-admin/) that'll be a help.

Finally, any plugins you have running such as domain mapping? Might want to remove them to make sure they're not interfering. Let us know.

Thanks Mason! I can't get to the admin at the root of the domain (it goes to the redirect loop), but I can get to the admin for the subdomains. I do have a dedicated IP. I haven't switched nameservers yet, I just edited the hosts file on my Windows computer to look for the domain at the new IP. It's how I always check out sites before making DNS changes to make sure that everything is working correctly. My wp-config.php looks good as well as the database. I moved hosts, but not domains. I did have domain mapping enabled. Removing the folder and commenting out sunrise.php support in wp-config.php didn't change anything.

I figured out the problem. It was so simple! I had backed up my database using cPanel, then I restored the database using cPanel's backup restore function. Don't ever trust cPanel's backup!!!! My database only had 36 tables in it! There should have been over 300. I exported the database through phpMyAdmin and imported it. Now everything works!!!

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: