SiteGround Staging Site Fun

I was working on setting up a staging site with SiteGround, try to follow the documentation found here: https://theme.co/apex/forum/t/troubleshooting-builder-preview-warnings/14404

But I wasn’t able to cange the site URL’s as suggested and SiteGround responded with the following:

“As noted, the Staging environment works in a way that enables it to make the copy of the site work with the staging URL while in its database, the URLs are kept those with the domain. Changing the site URLs will result in the Staging not working properly. Please reach the plugin’s support team for their verdict and get back to us afterward so we can further check how we may proceed.”

Any suggestion for getting my staging site up and running?

Thanks!

Hi,

You can try changing it through your wp-config.php file.

Add the code below in wp-config.php before /* That's all, stop editing! Happy blogging. */

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

Change http://example.com with your staging url.

Make sure to remove it when deploying your site to production.

For more information kindly refer to the link below

https://codex.wordpress.org/Changing_The_Site_URL

Hope this helps.

I’m assuming you mean the wp-config.php of the staging site itself, right? I feel that that is stating the obvious but I wanted to double check.

Hi @nakana,

Yes, should be in staging. But it’s known issue in SiteGround (from live to staging or from staging to live) to have internal URL issue. In which the URLs stay the same after switching.

Maybe direct them to where the URL isn’t changing and ask for workaround :slight_smile:

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.