I am not asking about the creation of a staging environment. I need to rephrase my question for clarity:
Is there a reason why I wouldn't want to change the document root for the domain of our website to point to the document root on the staging website during a site upgrade, and leave it there permanently, with the production site now becoming the staging site?
Will it affect search engine traffic or the way that Google crawls the website if the document root folder changes entirely?
Sorry, if there is a duplicate question with answers on this already, but I am not seeing answers addressing the change of the document root specifically, or how it could affect traffic, seo, etc.
OLD QUESTION text to follow:
My company's website needs to undergo some big upgrades. We want to avoid downtime for our users if at all possible.
Are there reasons why we wouldn't want to create a duplicate site, and during maintenance simply change the document root for our domain name to this site's folder?
This way, we could create a duplicate site, perform the upgrade, ensure everything is working, and when it is, change the document root folder.
I have been scouring the web for information about how this could affect our site, such as whether this would change anything in the eyes of Google, etc. and so far, I've found nothing about it.
I'm worried I'm missing something big.