Moving a blog from subfolder or folder to subdomain is actually an easy and simple process. But the steps in doing this depends on the system used by your current webhost or of your web hosting account.
1) cPanel(r)
If you are using the cPanel of the cPanel.Net, follow the steps below:
- Login to your web hosting account’s cPanel. Usually, the address is in the format: “yourdomain.com/cpanel” (with out quote) or “yourdomain.com:2082″ (without quote)
- If the name of the folder that your blog’s main files are currently placed is also the name that you want to use for your subdomain, then you need to rename the folder that your blog is currently placed into a different name because based on my experience, the cPanel will not create a subdomain when the folder is already existed. Use the FILE MANAGER in doing that.
- Then open the SUBDOMAIN MANAGER and create the subdomain.
- After successfully created a subdomain, switch back to the FILE MANAGER . Delete the folder generated during the process of the creation of the subdomain. Then revert the renaming process that you did in step 2. This is to make sure that your blog’s files will be placed on the folder that is now used by the subdomain.
2) WHM(r)
If you have a reseller account from a webhost and you are using the WHM (WebHost Manager) product created by the cPanel.Net, then follow the steps below:
- Login to your cPanel just like the step 1 in the option 1 (cPanel) above.
- Open the MyPHPAdmin and open the database used by your blog.
- Export the database used by your blog and save it into your computer.
- Use FTP client and download all the important files of your blog into your computer. These files usually found in folder WP-CONTENT folder.
- Login to your WHM account. Usually the URL format in logging in to your WHM is “yourdomain.com/whm” (without quote) or “yourdomain.com:2086″ (without quote).
- Click CREATE NEW ACCOUNT , and create new web hosting account using your desired subdomain in the “Domain” field. Just fill up the other fields according to your preference.
- After creating the account, log in to the new account’s cPanel. The URL is in this format: “subdomain.domain.com/cpanel” without quote or “subdomain.domain.com:2082″ without quote.
- Install the Wordpress engine using the FANTASTICO in your cPanel.
- Open the MyPHPAdmin and open the database used by the freshly installed Wordpress engine. Drop or empty all the tables and import the database you recently downloaded in step 3.
- Using the FTP client, upload all the files you downloaded recently in step 4.
- Then check for a problem, fix them if you found something, then everything will be fine again.
3) Web Host’s own Control Panel
There are webhosts that use their own Control Panel and are not using the cPanel product of the cPanel.Net. One of these web hosts is the DreamHost.Com. But although each web hosting company have their own created Control Panel, but the design of this Control Panel is almost the same and the flow of the programme is similar.
So here’s what you need to do:
- Use FTP Client. Login to your “yourdomain.com” account and download all the important files of your blog. These files usually are found in the WP-CONTENT folder. Download the WP-CONFIG.PHP file too. It is found at the root directory of your Wordpress blog.
- Login to your Web Hosting account Control Panel. The URL usually is in the format: “panel.webhost-domain.com” without quote.
- Open the DOMAIN MANAGER . And add domain to host. In the domain field, enter your desired subdomain, ie. “subdomain.domain.com” without quote.
- Open the ONE CLICK INSTALL . This is similar to the FANTASTICO . Then install the Wordpress into the new hosted subdomain.
- Open the WebFTP for the newly hosted subdomain. Open or edit the WP-CONFIG.PHP file and change the content of it with the content of the WP-CONFIG.PHP that you downloaded in step 1. Or you can simply upload the WP-CONFIG.PHP (using the FTP client) that you recently downloaded in step 3 and overwrite the current WP-CONFIG.PHP
- Use FTP client. Upload all the files you download earlier in step 1.
- Then your blog using the subdomain must be running fine now.
