I suggest avoiding installation in a subdomain. It’s unusual and may lead to problems; others can perhaps confirm? In your situation, I’d prefer to use a separate, temporary domain name, e.g. exampletest.com, and install there.
There’s more to moving the test site than you’ve mentioned, but there’s plenty of guidance available: http://codex.wordpress.org/Moving_WordPress
The key thing you’ve missed is going through the database and changing all the URLs held there. That could include, for example, the URLs of uploaded images in your test posts, hyperlinks from post to post etc.
Thread Starter
Jeremy
(@jfairbrass)
I’m a bit confused as to why using a subdomain for my test site is more problematic than using a separate domain. Surely a domain is a domain, whether it’s test.example.com or exampletest.com? Either way, it needs to be changed from what it currently is, into http://www.example.com when I’m ready to go live, right? So surely the steps for changing it would be the same?
Please note that I would not need to move the actual WP files or change the database name at all. So the steps at http://codex.wordpress.org/Moving_WordPress mostly would not apply, as they are talking about moving the WP files from one location/folder on the server to another, or from one server to another server, which I would not be doing. I’d keep the files in the same folder on the same server, but simply change the URL (which will also require me to make some modifications to my domain settings with my web provider, which I can easily do).
I found a couple of plugins that seem to be designed to help change the URL when moving WP:
http://wordpress.org/extend/plugins/wordpress-move/
http://wordpress.org/extend/plugins/velvet-blues-update-urls/
I think I could use one of those to take care of the URL change for me.
In my original post above, I asked whether I could safely activate the multisite functionality (via that line in wp-config.php) after I’d built the site and changed the URL to make it live. I think the answer to that question is yes, right? In other words, it’s not necessary for me to activate multisite straight away after installing WP – I can first build my site with a non-network installation, creating all my pages and content and everything, and once it’s all done and I make the site live, I can afterwards (at any time) add that line to wp-config.php to enable the network functionality???? And then start creating the additional websites to the network that I want?
That way, I’d avoid some of the complications of changing the URL of a multisite WP, which, from what I can gather, is much more complicated to do than changing the URL of a non-multisite WP – right?
(Hope that makes sense!)
If you use a subdomain install for your test site, such as http://test.example.com, then you cannot choose to use the popular sub-domain install (in which user sites have URLs such as http://user1.example.com).
You cannot choose Sub-domain Install (for a domain-based network) in the following cases:
The WordPress URL contains a path, not just a domain. (That is, WordPress is not installed in a document root, or you are not using the URL of that document root.)
http://codex.wordpress.org/Before_You_Create_A_Network
You’d get away with it OK if you were prepared to limit yourself to a Sub-directory install (where user site names are like http://test.example.com/user1).
Thread Starter
Jeremy
(@jfairbrass)
Okay, I still don’t really get this, and I’m wondering if perhaps we’re not on the same page as each other. 🙂
First of all, with your quote above about subdomain multisite installs not working when the URL contains a path: I do understand that, but it doesn’t apply to me, as I’ll install WP into the document root, not into any subfolder or path. So no problems there.
I still don’t see why I can’t first install WP with a test subdomain (test.example.com) *without* enabling multisite – so WP is just an old fashioned, regular, non-network installation – then build the site how want it, then change the URL to http://www.example.com (using those plugins I mentioned previously for helping to change the URL) – and THEN, finally, turn on multisite by editing the wp-config.php file. Why wouldn’t that work? Because in this scenario, I’m taking an installation that uses http://www.example.com and turning *that* into a multisite setup, with http://www.example.com being the primary domain there. WordPress, at that stage, has no knowledge anymore of the old test.example.com domain – right?
Everything I’ve read at http://codex.wordpress.org/Before_You_Create_A_Network and http://codex.wordpress.org/Create_A_Network suggests that this should work fine. :S
Installing single site in test.example.com, MOVING it as single site to example.com and THEN turning on Multisite will work.