| | #1 |
| HyperActive Warrior War Room Member Join Date: 2009
Posts: 253
Thanks: 3
Thanked 8 Times in 7 Posts
|
I have a problem with a WP database and decided to do a clean install on it. I installed wordpress on a subdomain, imported all the posts etc. from the mother site into it etc.. Now, I have pretty much exactly what I want on the subdomain. I am just nervous about moving it over. Technically, if I: 1. move all the files from the subdomain into the public html folder 2. delete the main database (the one now serving the root domain) Should the site (currently on the subdomain) work on the root domain? Do I need to do anything to the database or wordpress on current subdomain site? Please let me know. |
|
Give your glass products the strength of 9H tempered glass with Dglass Coat. https://dglasscoat.com/ | |
| |
| | #2 |
| Niche Websites Buildiers War Room Member Join Date: 2012 Location: Annapolis, Maryland - USA
Posts: 857
Thanks: 62
Thanked 171 Times in 169 Posts
|
Are you stilling looking to get this done ?
|
| http://pixelcovers.com/ <- eBook add eCovers https://www.unicommercesolutions.com <- WordPress Websites and Maintenance | |
| |
| | #3 |
| Active Warrior Join Date: 2010
Posts: 75
Thanks: 8
Thanked 8 Times in 7 Posts
|
Are you sure the problem was with the database and not any of your themes, plugins, etc... ? If all you need to do is use a different database, the first thing I would look into is changing the database settings in wp-config.php. Have it point to the new database you setup. Nothing gets deleted and you can switch back if you need to. All your files stay intact. I haven't worked with wordpress in a little while, but I'm guessing the database settings are in that file. If they are also stored in the database, then that will need to be updated. But, I'd look into simply switching the database. If you have the same problem with the new db, then it could be that your database is fine and then it's just one of your files. Most likely a plugin or theme file. You could remove each plugin, and copy in the replacement plugin files one at a time. Same thing with your theme. You could just switch everything like you are planning, but some of what I suggested may be a safer way to test a few things out and it may fix it. Although, it may take a little more time experimenting. Just depends on what you want to do. I'd look into the plugins and theme first since that may be the problem. Try just switching themes and see if everything works. Then you know it's in the theme. |
| |
| | #4 | |
| Johan Efendi War Room Member Join Date: 2012 Location: Surabaya, Indonesia
Posts: 10
Thanks: 1
Thanked 3 Times in 3 Posts
|
![]() If your problem just moving from root into subdomain, i think its not necessary to clean install. just move all your files and a little tweaking on your wordpress options table | |
| | ||
| |
| | #5 | |
| HyperActive Warrior War Room Member Join Date: 2009
Posts: 253
Thanks: 3
Thanked 8 Times in 7 Posts
|
That's a good idea. If I move the wp-config file to the public html folder, it should automatically be on the new database?
| |
|
Give your glass products the strength of 9H tempered glass with Dglass Coat. https://dglasscoat.com/ | ||
| |
| | #6 |
| Advanced Warrior Join Date: 2007 Location: Hong Kong.
Posts: 838
Thanks: 3
Thanked 211 Times in 184 Posts
|
Here's the step-by-step- process for moving WordPress up to the root: Move WordPress from a Sub-Folder to the Root | WealthyDragon Cheers, Martin. |
| WealthyDragon - Earning My Living Online | |
| |
| | #7 |
| Active Warrior Join Date: 2012 Location: South Florida
Posts: 66
Thanks: 23
Thanked 6 Times in 6 Posts
|
Hey, Okay from my understanding you have a WordPress blog installed on domain.com/blog and you are wanting to move it to blog.domain.com. You need to do a database backup and a clean install of WordPress in the domain you want to use it on. After that restore the database on the domain you want to use. Subfolder - www.domain.com/blog Sub-domain - blog.domain.com However you want you just need to restore the content in the correct section and things will be okay. Make sure you verify and confirm before you delete anything and even then you should have a back up. You can't just move the config file unless you know what you're doing and you make corrections in the file itself. |
| |
| | #8 |
| HyperActive Warrior War Room Member Join Date: 2009
Posts: 253
Thanks: 3
Thanked 8 Times in 7 Posts
|
Thanks for all the help, although some people did not really look at the question. If anyone else needs to clean up a WP database, it is fairly easy to just export posts etc. and then import them into a new site you setup. Then, just transfer the files over to the root and delete the old database. One thing to watch out for that threw me at first is to make sure you have the right site address set (in Settings/General) |
|
Give your glass products the strength of 9H tempered glass with Dglass Coat. https://dglasscoat.com/ | |
| |
| | #9 | |
| Warrior Member Join Date: 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
I've had to move several of my sites, wordpress has documentation about it here codex.wordpress .org/Changing_The_Site_URL One of the most important things is changing
| |
| |
| | #10 | |
| Johan Efendi War Room Member Join Date: 2012 Location: Surabaya, Indonesia
Posts: 10
Thanks: 1
Thanked 3 Times in 3 Posts
|
| |
| | ||
| |
|
| Bookmarks |
| Tags |
| moving, subdomain, wordpress |
| |