I needed a temporary URL for testing a site while migrating it into SiteGround.
I’d already set up a blank WordPress install via their cPanel WordPress install tool, but I needed a temporary URL to work with while I migrated the files and database over, and in order to test it show it to the client before switching the domain name from pointing to the current host to SiteGround:
I tried a few hacky techniques but in the end it was simple as:
- clicking the ‘Access Site via IP’ button in the main SiteGround (not Cpanel) control panel, as explained here:
https://www.siteground.co.uk/tutorials/getting_started/transfer_point_domain.htm#s3 - Taking that URL and adding it to your wp-config.php file:
define('WP_HOME','http://77.105.146.214/~cpanelusername/'); define('WP_SITEURL','http://77.105.146.214/~cpanelusername/');
Now you should be able to access that site (including logging in to the WordPress admin) via that URL.
NB. This for the ‘primary’ domain installed on the root of SiteGround, I don’t know what mileage you’ll have with other domains / installs (though if you find something that works / is better please add it as a comment below!)
Leave a Reply