Converting Existing Site to Joomla


Hi. I’ve been reading the Wiki and rlparker’s very helpful post from a few days ago about this, but I want to make sure I understand it before I take the plunge. I have a Joomla site ready to go on my local machine and I believe I understand how to upload it to Dreamhost once I understand the business about subdomains.

I currently have two domains that point to the same static HTML/CSS website. The main site is (web directory host/username/ The second site is and points to the same directory.

I want to install a test site that uses Joomla and then, once it is approved, make this the real site. I will also want to (probably) have a second Joomla site for on-going testing and development.

If I understand this correctly, a good way to do this is with subdomains. So, for example, I would create 2 subdomains called “” and “”. Then I would install Joomla in both of these and, during the test period, users would browse to these with the URL or

I could map these to top-level directories under host/username, such as host/username/joomla15live and host/username/joomla15test.

Is this right so far?

So, when I’m ready to make the site the real site, do I just change the Web directory for to host/username/joomla15? Is it really that easy?

Also, is there a way to keep search engines out of the test subdomains?

Is there anything else I need to take into account for this?

Thanks very much. Mark


Two thoughts come to mind about this setup that you might want to consider:

  1. Having identical content on two sites in the eyes of Goggle is considered by many to be less than optimal - Google will pick up on this and it is likely neither site will do as well page rank wise in Goggle as either would have done on it’s own (without Google seeing the duplicate content).

Just one more example of how the SEOtards have screwed things up for the rest of us - your “legitimate” attempt to “catch” users who mistype the .tld part of the url are not recognized as being “different” than the SEOtards’ thousands of duplicate domains whose only purpose is to “game” the search engines in hope of luring traffic.

  1. The ingle codebase of Joomla reached from either urls can complicate matters with Joomla!'s re-write rules, but if it is working for you than that is likely not an issue.

[quote]I want to install a test site that uses Joomla and then, once it is approved, make this the real site. I will also want to (probably) have a second Joomla site for on-going testing and development.
This can be a good strategy, and is similar to one I use on a daily basis *just make sure and keep your dev/live MySQL databases separate, or in sync!)

I don’t see any problem with doing it that way, though I probably would only use one site/subdomain for development purposes, and then just copy it to a live subdomain when ready to launch - either way should work though, and you have plenty of space on DreamHost so it’s not that important to be uber efficient. :wink:

Well, it’s “prettymuch” that easy but you may have to do some minor tweaking with configuration to account for the new domain name (depending upon your rewrite rules usage, seo setting, re-write rules, etc.).

There is more that one way to do that, depending upon how you want the site to be accessible during testing. You can, for instance, simply password protect the entire development subdomain using apache authentication and .htaccess, which would keep everyone without credentials out of the site altogether. You could also employ robots.txt to instruct “well-behaved” robots not to crawl the site.

To my thinking, the main issue with this is the management of your database or databases. If you use the same database and table prefix for both the sites/subdomains, any change made using either site’s codebase will be reflected in both site’s database information. I’m not saying this is necessarily bad, but it can present organizational and revision management challenges.

Alternately, each site/Joomla! instance can have it’s own database, which would require that manually keep the db’s in sync with other tools (phpMyAdmin, the shell command line, etc.), but allows you to experiment with the dev site without writing to the live site’s database at all.

A hybrid method of dealing with this is to keep both sites in the same database, but use different table prefixes for the different Joomla installations. This allows you to keep all the data together for ease of backup and uniformity of MySQL connect information while effectively keeping each site’s data separate. You can still manipulate the data for either site with external tools; yo will just be working with a subset of the database tables at a time for each site (using only the tables with the appropriate prefix).