• Resolved anticube5

    (@anticube5)


    I just followed all of the forum instructions on how to remove the www. from my multisite installation and now I’m stuck with a redirect loop. I went into the DB and removed all instances of www. in the phpMyAdmin and then I took it out of my wp-config file and that broke everything.

    define(‘WP_DEBUG’, false);
    define( ‘SUNRISE’, ‘on’ );

    define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, true );
    $base = ‘/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘iics-k12.com’ );
    define( ‘PATH_CURRENT_SITE’, ‘/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 1 );
    define( ‘BLOG_ID_CURRENT_SITE’, 1 );
    _____________________________________________________
    The .htaccess file is below:

    RewriteEngine on

    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule . index.php [L]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yeaaaah. That’s a hassle.

    Go back and double check that www isn’t in your wp_sites or wp_sitemeta tables.

    Thread Starter anticube5

    (@anticube5)

    Hmm…ok, I changed it in the wp_site and sitemeta tables but it still says it’s got a redirect loop. I just can’t afford to start over from scratch since I have to set up all these blogs today. Any other places it might need to be changed over to?

    If I change this: define( ‘DOMAIN_CURRENT_SITE’, ‘iics-k12.com’ );

    in the config file to define( ‘DOMAIN_CURRENT_SITE’, ‘www.iics-k12.com’ );

    I don’t get the loop, but I think it is still creating the sites as subdomain.www.domain.com

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Try searching the whole DB for www

    And yes, I mean www. The trouble with removing the www is that you’re essentially changing the domain name, which is really more complicated than just what you did:

    I went into the DB and removed all instances of www.

    How did you do that? If you did a search/replace for all things www, without checking every change first, you could have easily broken things.

    Thanks Ipstenu – you were right about this.

    Initially i went through the db and replaced all instances of https://www.mydomain.com to https://mydomain.com – still got the loop.

    However, when i went through and did a search and replace for just https://www.mydomain.com to mydomain.com, it worked!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I tried removing www. from my multisite and now I have a redirect loop…’ is closed to new replies.