Support » Networking WordPress » Redirect loop on entire network due to domain change

  • Resolved oilandsugar


    I am currently working on moving a multisite install to a new server space and changing it’s main domain. At this moment the files are on the server and everything was working fine while setup on the temporary address (static IP) that the hosting company gave me while my domain were moving.

    Once my domains finished moving to the new hosting provider, the only thing that was left to do was putting back the real URL in place of the IP adress in the adress bar when you’ll go see the site.

    I read the article on moving multisite a couple of times before and prepared myself to edit the files and the database to make the change effective.

    I changed the domain in wp-config.php and after that searched and replaced an exported copy of my database to change the domain everywhere. I uploaded all of this back at their places and I am now stuck with a 310 error caused by a redirect loop on all of my sites and also on the wp-admin page.

    Before that i got a database connection error but I checked all the fields of my database again and “solved” it while getting the redirect loop.

    The problem most probably resides in the database change or the wp-config file configuration somewhere but I just can’t figure it out on my own.

    Here is a chunk of my wp-config.php file concerning the domain

    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', '');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    And my .htaccess file looks like that at the moment:

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress
    #Edited by emerald000
    AddType application/x-httpd-php .html
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Redirect loop on entire network due to domain change’ is closed to new replies.