WordPress Multisite non-WWW forwards to Signup Page Problem Fix

August 17th, 2010 | Tagged as: ¤ ¤ | Download as PDF
 
WordPress expert hire me notice
 
 

If you have enabled WordPress Multisite on your domain and with at name such as www.domain.com then there is a problem that the non-WWW version (domain.com) will take you to a sign up page to add a new site to your Multisite install.

This is clearly not what we want and it arises due to the problem that technically WWW and non-WWW are different and hence this problem occurs.

I have a quite easy fix for this, you just need to edit a value in the database and everything would be fine. The non-WWW version will redirect to the WWW version.
Open your database in phpMyAdmin and go to wp_blogs table (as per what your WordPress table prefix is)

wp-blogs-table

Look for the entry www.domain.com and edit it.

wp-blogs-table

Change it to domain.com from www.domain.com and click on Go to save.

wp-blogs-table

Now when you will try to access the non-WWW version of your domain, it will redirect to the WWW version of the domain. Good for SEO too.
Let me know if you face any issues.

 
 
{ 11 Comments }
  1. atm says:

    you r very pound thank

  2. Thanks for sharing this great tip.

    • Ashfame says:

      Pleasure :)

  3. can’t this be set from the general settings? where you set the blog address? or it’s different with multiblog sites?

    • Ashfame says:

      I don’t think so as its a problem arises after installation when you are using www version of domain as main site

  4. The posts like this one makes the Internet worth our time. Thanks

  5. steve says:

    just the answer i was looking for, thnx!

  6. Alex says:

    Amazing, thank you so much. This not only fixed the problem with redirecting non www to www on multisite installation, but also fixed the problem that the subdomains were showing an error page of cannot connect.

    Thanks so much, you fixed two problems in my multisite, with one very simple fix.

    Greetings,
    Alex.

    • Ashfame says:

      Hi Alex,

      Happy to help! :)

  7. Diego says:

    Thank you!

Leave a Reply

(required)

(required)