0

Background: I've only done vanilla theme and direct installs until now. The site I'm working on has an existing (ancient) Mambo install in root directory. For the new Wordpress revision, client wanted to develop the content of new site before replacing it. After reading the Codex, I decided doing a subdirectory install was the best way to go, then use the pre-existing subdirectory install routine to move it to root. But for some irrational reason, instead of just pointing to the subdirectory, I assigned the new Wordpress site to a subdomain. (I'm new at this, and now realize I made it more complicated than necessary!)

To summarize current situation:

www.example.com --> existing old site
www.example.com/wordpress --> WP physical install
dev.example.com --> Subdomain is assigned to www.example.com/wordpress; WP URLs assigned to dev.example.com

After reading the procedure carefully, I plan to proceed this way:
0) Backup database and full install folder to local
1) Change WP assigned URLs to www.example.com
2) Remove the subdomain pointer
3) Copy index.php and .htaccess to root as normal (I will back up the old index.php and .htaccess to a subdirectory in case I have to fall back to the Mambo site).
4) Change index.php's require('./wp-blog-header.php'); to require('./wordpress/wp-blog-header.php');

1, 3 and 4 are standard. I'm hoping that by removing the subdomain assignment in sequence at 2, there will be no issues with this. My question is: does that sound right? My concern is that removing the subdomain will nuke the /wordpress folder or do something else crazy. I haven't done that before, and the client's site is on 1and1, which has a very obtuse nonstandard back-end.

Thanks for any advice.

1 Answer 1

1

If I understand you correctly, you're removing the old Mambo site and intend to run WordPress as the main site in this domain.

If that's the case then (depending on any plugins that you have running) all you will need to do after making backups of everything is move the entire contents of your /wordpress directory up to the webroot and run a search and replace on the database for the string 'dev.domain.com', switching it for 'www.domain.com'

Do bear in mind that this last step is thoroughly dependent on the two strings (dev.domain.com and www.domain.com) being the same length. If they are different in length, for example 'staging.domain.com' and 'www.domain.com', then you may be better served by a tool such as the incredibly useful Search & Replace for WordPress Databases by Interconnect IT

1
  • Thanks for the reply. Actually, I don't want to remove the Mambo installation just yet, in case of trouble. The method I linked to theoretically allows this, by just changing index and htaccess in root. After I'm sure it's running OK, I'll go back and weed the Mambo out. I did name the "dev" install that way to avoid serialization issues, but hope to avoid database search and replace shenanigans.
    – boomturn
    Apr 17, 2012 at 14:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.