We have been experiencing some issues trying to update our site with Cornerstone on SiteGround's staging environment.
"The preview could not load due to misconfigured URLs. This could happen if you are using multiple environments and the site URL was not updated after migrating."
We followed theme x advice here (https://theme.co/apex/forum/t/troubleshooting-builder-preview-warnings/14404), to Update the WordPress and site URLs to match the staging URL, but WP Settings > General are blocked for users since the staging copy relies heavily on a few rules that are preset in order for the site to be pushed normally to the live one.
We were adviced to request a ticket directly to SiteGround's technical team to complete this steps:
1.Create a staging on Site Ground Cpanel with the Staging Tool
2.Add the A records to Cloudflare
3.Open 1st Ticket on Site ground asking to update the WordPress and site URLs to match the staging URL
4.Update the site accordingly
5.Open 2nd Ticket on Site ground asking to update the WordPress and site URLs to match the original URL
6.Push staging site to live
After a few tests this was their respond:
I tried to apply the workaround that the theme developers suggest.
Unfortunately, when the URLs in the database are changed, this causes a redirect loop and the website does not function at all.
It looks like your particular application cannot operate under the staging subdomain under the staging tool.
I tried to change the theme and disable all plugins, to check if the issue is related to a plugin or the theme, but the redirect loop persisted despite that.
It does not seem like your application can work with the staging tool unless it uses the correct staging settings.
I would recommend that you contact the plugin developers for further assistance.
Is there anything else you could suggest?