I'm working on setting up a new multisite with a new hosting provider, moving from a shared hosting environment to a Cloud VPS environment. From some of my posts below, you'll see that I've been having difficulty setting up the new multisite, but finally determined the source of my problems. Within my new target environment, I've setup my domain name (example.com) and was attempting to setup a subdirectory site (example.com/site1).
Because my new site is not yet live, I can only access it via the IP address (188.8.131.52). The issue I was having was that IP address does not resolve to the domain name when Drupal is looking for which site to go to. I had set my subdirectory site up under the sites folder as example.com.site1, which didn't work. I have changed the subdirectory site name to 184.108.40.206.site1 and 'bingo', I was able to install Drupal on that site.
Now my question is this. It seems like I'll be able to do all of my site prep work before I make DNS changes that will point my domain to my new site. When I do that, will simply renaming the subdirectory site name from 220.127.116.11.site1 to example.com.site1 leave all of the work I've done in place?
I'm thinking it should, but I'm interested in hearing from those who have gone through similar transitions whether that is the correct way to address this. The alternative approach I thought about was putting a line of code in .htaccess what would somehow resolve the IP address to the domain name, but since I have no expertise to do that, the approach I took seemed simpler.