Discussion:
Removing 'www' from primary blog on network
Tom Barrett
2013-06-25 11:56:28 UTC
Permalink
I have a network that was set up using www (even though the guide says not
to).

Is there a way to fix this?

I have tried updating wp-config.php, wp_blogs and wp_site.

I can get it to the point where all the non-primary sites and their domain
mappings appear to work. The primary blog works, and the /network/ can be
browsed.

However, the two issues appear to be:
1. Browsing /network/ is done on www site
2. Adding new sites fails with 'Are you sure you want to do this?'

Thanks!
Mika Epstein
2013-06-25 13:23:37 UTC
Permalink
Check wp_options too. The home and siteurl entries often remain oroblematic.

Actually, you may want to search the whole DB to see what lingers. But beware serialized data :/
Post by Tom Barrett
I have a network that was set up using www (even though the guide says not
to).
Is there a way to fix this?
I have tried updating wp-config.php, wp_blogs and wp_site.
I can get it to the point where all the non-primary sites and their domain
mappings appear to work. The primary blog works, and the /network/ can be
browsed.
1. Browsing /network/ is done on www site
2. Adding new sites fails with 'Are you sure you want to do this?'
Thanks!
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Brian Hogg
2013-06-25 13:46:09 UTC
Permalink
A script like this one can help with the serialized data search + replace, at least:

http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

Have used it a few times when moving a multisite over to a new core domain (in addition to any non-db changes like wp-config.php) and has worked well.
Post by Mika Epstein
Check wp_options too. The home and siteurl entries often remain oroblematic.
Actually, you may want to search the whole DB to see what lingers. But beware serialized data :/
Post by Tom Barrett
I have a network that was set up using www (even though the guide says not
to).
Is there a way to fix this?
I have tried updating wp-config.php, wp_blogs and wp_site.
I can get it to the point where all the non-primary sites and their domain
mappings appear to work. The primary blog works, and the /network/ can be
browsed.
1. Browsing /network/ is done on www site
2. Adding new sites fails with 'Are you sure you want to do this?'
Thanks!
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Ben Lobaugh
2013-06-28 01:50:07 UTC
Permalink
+1

Just a couple days ago I used that script to migrate over a large
important multisite with no issue other than script timeouts. If that
happens to you simply select a few tables at a time and repeat the
process till complete
Post by Brian Hogg
http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Have used it a few times when moving a multisite over to a new core domain (in addition to any non-db changes like wp-config.php) and has worked well.
Post by Mika Epstein
Check wp_options too. The home and siteurl entries often remain oroblematic.
Actually, you may want to search the whole DB to see what lingers. But beware serialized data :/
Post by Tom Barrett
I have a network that was set up using www (even though the guide says not
to).
Is there a way to fix this?
I have tried updating wp-config.php, wp_blogs and wp_site.
I can get it to the point where all the non-primary sites and their domain
mappings appear to work. The primary blog works, and the /network/ can be
browsed.
1. Browsing /network/ is done on www site
2. Adding new sites fails with 'Are you sure you want to do this?'
Thanks!
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Tom Barrett
2013-07-03 08:39:20 UTC
Permalink
Thanks all

I also needed to update wp_sitemeta to set the siteurl.
Post by Ben Lobaugh
+1
Just a couple days ago I used that script to migrate over a large
important multisite with no issue other than script timeouts. If that
happens to you simply select a few tables at a time and repeat the process
till complete
http://interconnectit.com/**products/search-and-replace-**
for-wordpress-databases/<http://interconnectit.com/products/search-and-replace-for-wordpress-databases/>
Have used it a few times when moving a multisite over to a new core
domain (in addition to any non-db changes like wp-config.php) and has
worked well.
Check wp_options too. The home and siteurl entries often remain
Post by Mika Epstein
oroblematic.
Actually, you may want to search the whole DB to see what lingers. But
beware serialized data :/
I have a network that was set up using www (even though the guide says
Post by Tom Barrett
not
to).
Is there a way to fix this?
I have tried updating wp-config.php, wp_blogs and wp_site.
I can get it to the point where all the non-primary sites and their domain
mappings appear to work. The primary blog works, and the /network/ can be
browsed.
1. Browsing /network/ is done on www site
2. Adding new sites fails with 'Are you sure you want to do this?'
Thanks!
______________________________**_________________
wp-hackers mailing list
http://lists.automattic.com/**mailman/listinfo/wp-hackers<http://lists.automattic.com/mailman/listinfo/wp-hackers>
______________________________**_________________
wp-hackers mailing list
http://lists.automattic.com/**mailman/listinfo/wp-hackers<http://lists.automattic.com/mailman/listinfo/wp-hackers>
______________________________**_________________
wp-hackers mailing list
http://lists.automattic.com/**mailman/listinfo/wp-hackers<http://lists.automattic.com/mailman/listinfo/wp-hackers>
______________________________**_________________
wp-hackers mailing list
http://lists.automattic.com/**mailman/listinfo/wp-hackers<http://lists.automattic.com/mailman/listinfo/wp-hackers>
--
http://www.tcbarrett.com | http://gplus.to/tcbarrett |
http://twitter.com/tcbarrett
Loading...