Let’s learn today how to configure WordPress on a temporary URL. This tutorial is applicable if cPanel control panel is installed on your server. Before we proceed further with the steps, make sure the cPanel temporary URL is working.
Install WordPress with a one-click installer like WP Toolkit OR Softaculous. Install it on your domain name. We will change it from a domain to a temporary URL later. Once it is installed, open File Manager and look for the file wp-config.php under your WordPress installation. You can either edit it from File Manager OR download wp-config.php via FTP. Edit the file and just below <?php add 2 lines as quoted.
define (‘WP_HOME’, ‘http://ServerIP/~cPanel-user’);
define (‘WP_SITEURL’, ‘http://ServerIP/~cPanel-user’);
Replace the server IP with your server IP address & cPanel-user with the actual cPanel username. Now, try accessing your WordPress website with temporary URL.