• Resolved Matthew Meyer

    (@osarusan)


    I recently converted my blog to WP multisite and it works great for the two domains that I added, but I am having an issue with my main domain.

    Previously my site worked at both http://www.mysite.com and mysite.com

    Now, my site works at http://www.mysite.com, but mysite.com directs it to the blog signup page, where it says “Greetings Site Administrator! You are currently allowing “none” registrations. To change or disable registration go to your Options page.” if I am logged in, and ” Registration has been disabled.” if I am logged out.

    With my new domains, whether I put in www. or no www, it removes the www and loads the site correctly. I want this same behavior to work on my main site, so it doesn’t load the blog registration page and instead just loads the blog. Is there a way to fix this?

    Thanks.

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Multisite HATES www and non-www. It would like you to have just one.

    Search your DB for http://www.domain.com and change it to domain.com all around. It’s just easier that way.

    Or you can use .htaccess to force it to non-www.

    Thread Starter Matthew Meyer

    (@osarusan)

    Thanks for the reply.

    I’ve tried your suggestion, but I’m having a strange result.
    I updated the wp-config.php file and I ran a command in phpmyadmin to change all http://www.mysite.com to mysite.com successfully.

    However, the site still redirects to http://www.mysite.com, and visiting mysite.com brings up a “too many redirects” error as it tries to load the new registration page.

    Further, I cannot access my Network admin settings, because they are trying to access mysite.com instead of http://www.mysite.com, and so it also brings up the same “too many redirects” error.

    I can still access the site’s Dashboard if I use www, but I cannot access the network admin.

    Do you have any idea why this would be happening?

    Thread Starter Matthew Meyer

    (@osarusan)

    Ah — well I figured out that changing define(‘DOMAIN_CURRENT_SITE’, ‘mysite.com’); in wp-config back to http://www.mysite.com fixes the issue with being unable to access my network dashboard… but it doesn’t seem to have made any progress on the domain name issue despite changing the database addresses. Is there any other file I should edit?

    —Edit—

    Ok, silly me, I just realized that the command I did in PHPmyadmin only updated some of the tables. I’m going to try again and this time get all of the tables…

    Thread Starter Matthew Meyer

    (@osarusan)

    Okay, that seems to have fixed the problem — I just had to make sure I changed all of the tables.

    Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problems with www and no www’ is closed to new replies.