WordPress.org

Ready to get started?Download WordPress

Forums

Encountered Infinite Redirect When Changing Domain Name (2 posts)

  1. s.fox
    Member
    Posted 1 year ago #

    My multisite network is running without any problems since I first installed it weeks ago. Today I need to change the domain name to a new one we've acquired. I figured all I would need to do is change the server_name directive in my Nginx configuration file, along with any other references in the wp-config.php file.

    After restarting, and attempting to go to the new domain, I am experiencing an endless redirect loop.

    After some R&D (research & debugging), I've learned the database still has the original domain name in various tables. Makes sense, but I doubt the resolution is a simple find and replace of all the values. Though I'll likely try it once I have it backed up properly.

    How do I safely change my domain name without the endless redirect? How can I resolve it? What would you do?

    Note: I did not want to use a domain mapping plugin. I greatly prefer having the new domain set as if it were used when I first installed it.

    Thanks.

  2. I figured all I would need to do is change the server_name directive in my Nginx configuration file, along with any other references in the wp-config.php file.

    You forgot to change the database. It's the same as moving Multisite, really: http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite

Topic Closed

This topic has been closed to new replies.

About this Topic