When you first set up your hosting account, there may be a need to access it immediately—before a domain is pointing to it or if DNS hasn’t yet resolved. In this case, you can use a temp URL to access your website. Alternatively, you can open an FTP program and connect to your hosting account using the FTP credentials supplied in your welcome email.
Once connected, navigate to and edit “public_html/wp-config.php”
Open up “wp-config.php” and add the following 2 lines of code directly above /* That’s all, stop editing! Happy blogging. */
1
define('WP_SITEURL', 'http://username.staging.server-xxxx.wphosting.com.au');
2
define('WP_HOME', 'http://username.staging.server-xxxx.wphosting.com.au');
IMPORTANT: Replace the URL above with the temp URL listed in your welcome email.
Once your domain name has resolved to your hosting account, you can remove these two lines of code from “wp-config.php”. This will allow your website to use the correct domain settings.
More advanced options can be found here – http://codex.wordpress.org/Changing_The_Site_URL
Remember to backup any files or databases you modify.
Using a temp URL to access your website allows you to start working on your site immediately. This is useful even before your domain is fully set up. Then, once your domain resolves correctly, you can remove the temporary settings from your wp-config.php file. This will ensure your website functions as expected.
Always remember to back up any files or databases before making changes. For more advanced configuration options, refer to the official WordPress documentation.