Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

How to change multisite settings to "www.site.org"? WordPress

  • SOLVED

I recently launched a multisite Wordpress site. By default, I believe the Wordpress install sets the url to "site.org". I've never run into an issue with this type of setup.

However, the client needs the site to be setup as "www.site.org", as the current "site.org" redirects to their mail server internally, so they can not access the website.

What's the best way to resolve this issue?

Thanks.

Answers (6)

2011-02-14

Andrzej answers:

edit your wp-config.php and insert this line:

define('WP_HOME','http://www.site.org');
define('WP_SITEURL','http://www.site.org');


Michael Brumm comments:

Before doing so, how will this affect the entire site?

I assume I will need to update all instances of "site.org" within the site to "www.site.org" in the database. Is that the case? If so, what's the best way of completing this?

Also, how will this affect the subsites? I'm assuming they will just change from
<strong>site.org/subsiteA</strong> to <strong>www.site.org/subsiteA</strong>

Any other issues I should be aware of?


Andrzej comments:

This will change WP options defined URL, so will affect all auto-generated permalinks, like menu items or widgets links.

However, if you have hard-coded non-www paths inside your posts, these will need to be changed as well.

I usually do it like this: I export the database by phpMyAdmin to a text file, and (keeping a backup), find and replace all occurances of http://site.org to http://www.site.org - worked quite good for me most of the time.

In case something falls, its mostly always a matter of wp_options table, so if it does, do same thing but don't include wp_options table in your imports.

2011-02-14

Gabriel Reguly answers:

Hi,

For multi-sites you will find the settings at Super Admin -> Domains

Just add a new entry www.site.org, with the same Site ID as your site.org entry.

Don't forget to make it primary.

Then later you can remove the site.org entry, or at least remove the primary check from it.

Hope it helps you.



Michael Brumm comments:

I don't "Domains" as an option under the Super Admin screen.

I've included a screensnap of the extended Super Admin panel and the closest thing to a domain list with primary site dropdown (Dashboard -> My Sites). Is this what you meant?

BTW, I'm running Wordpress 3.0.5.