I created a wordpress on www.sub.domain.com , and I want to change it to be www.domain.com How can I do this ? Thanks
Once you have moved the files to the domains root folder, login to cPanel (presuming your host uses it) and goto phpMyAdmin. Select the database which corresponds to the site. Browse to the wp_options table. Enter the following MySQL command to find all occurrences of your subdomain url: SELECT * FROM `wp_options` where `option_value` LIKE '%sub.domain.com/%' Code (markup): Obviously change sub.domain.com to your actual url...! Edit the value field to reflect the new domain. See the example screenshot below, where I have selected all fields with "localhost:8888/" (You can use this method to move a local site to a server too!) Hope this helps! Mark.
Hi, Move all the WP files to sub Folder to Root Folder and edit the DB and change the file settings to the root location. Bye Webmaster.
Need to change the home URL and siteurl from database table that wp_options yuo see the field "home" and "siteurl" change to new one...