Do I need to be selective about where I search and replace when pointing a domain to a subfolder used for development?
I've got a WordPress site I built in a subfolder of an existing, active hosting account with another WordPress site in the main folder, per my client's instructions. Something like http://www.siteurl.com/NewSite/.
The plan was to take a domain that was currently active on another hosting account and point it to that folder, so that instead of being active at http://www.siteurl.com/NewSite/, the site would be accessible at http://www.newsite.com. I had all my ducks in a row, pointed the DNS settings, and thought I was good to go.
After the DNS had propagated properly, the site was working at http://www.newsite.com, but all the links were accessible at http://www.siteurl.com/NewSite/differentpage instead of http://www.newsite.com/differentpage. I'd get an error if I tried to access http://www.newsite.com/differentpage directly. No big deal, right? I thought all I needed to do was set up a search replace in Sublime Text 2 that replaced all instances of siteurl.com/NewSite with newsite.com, so that's what I did. A tech I spoke to on the phone with my host confirmed this.
So I dropped all the old tables, and imported the new database with all instances of siteurl.com/NewSite replaced with newsite.com.
To my surprise and irritation, though, it didn't work. The site was mostly the same, but somehow an enormous amount of settings had been dropped from the theme, including all the custom CSS I had written. I quickly restored the database to the previous form, with instances of siteurl.com/NewSite instead of newsite.com, and things went back to normal.
My question is, what the heck am I missing? Is there a part in the database that needs to have an absolute pathway on the FTP that I shouldn't edit? If so, how should I go about picking out those specific space or spaces? Why have I never encountered this issue before when pointing the DNS to subfolders?
To phrase it another way, what is it about simply changing the valid domain featured in several pathways would cause the site to not recognize numerous specific database entries, but leave others intact. They seem to only be a problem with fields associated directly with the theme options themselves. I'm using the Total theme, by WPExplorer, if that helps at all.
Thank you. Grateful for any help anyone can offer.