Moving website root directory - losing theme settings


#1

I am attempting to move my website from it’s current location in a /dev sub-directory up one level to the root of the website, but each time I try by moving all files and exporting the database and changing all the /dev references, I lose all of my theme settings and it defaults back to the demo moesia settings.

Root - http://ypoquebec2016.com
Current location - http://ypoquebec2016.com/dev/about/

Any ideas of how I can accomplish this without losing the theme settings?

Thanks,
Jeff


#2

Hi,

If you move the site from one folder to an other, your settings may be changed to default, so you will have to re-set some things, but database and XML export / import should work, have you exported the XML too in wp-admin / Tools / Export from the root and wp-admin / Tools / Import to the /dev?

Best Regards,
Csaba


#3

Hi Csaba,

I’ve moved the files from /dev to the root, and then I went and did a manual search and replace in the database to remove the ‘/dev’ portion of the url. The site works at the root - although things that are tied to the theme did not and it sure looked like it was showing me the default theme.

I have used the xml import/export before just to migrate posts and other data for other sites, but does the xml data contain the theme data as well? I’d like to do this without having to reset all the theme settings because I’m not sure what they all are!

Thanks
Jeff


#4

Hi,

The theme settings have to be in your database, how I know these are saved in database, except the theme file modifications, so better let me know what kind of settings you are missing so I can check where they are.

Best Regards,
Csaba


#5

Hi Csaba,

I’ve attached a link to a screen shot of my pre-db-edit.jpg (what the site looks like before I edit the database to remove the /dev directory). Works great, looks great, but I need to remove the /dev from the URL.

PRE-EDIT DB IMAGE
http://postimg.org/image/m5eks8d2t/

The next screen shot is after I’ve edited the db to remove the /dev directory. The site functions correctly for the most part, but you can see it appears that it’s using some of the dummy theme elements. I’m not sure what else to try at this point. I’ve edited the db, tried your xml export suggestion, not having any luck.

POST-EDIT DB Image
http://postimg.org/image/buudxziyr/

Any help is greatly appreciated.
Thanks,
Jeff


#6

Hi,

You have installed wordpress with a new database on your main domain or you have moved the wordpress files from the /dev?

Best Regards,
Csaba


#7

Csaba,

I have moved the files from /root/dev to /root.

Thanks,
Jeff


#8

Hi,

That’s not the correct way to do it, Please make sure to follow the instructions here: https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

Best Regards,
Csaba