So you signed up for a new hosting for your website, your domain is still hosted elsewhere with some old content and you want to build an new website using Wordpress, you want to test it out before pointing the domain to our server, here is how you can do it.
You can access your hosting space before pointing the domain to our server using a temporary URL, You can find your temporary URL in your admin area of the hosting account, 'Advanced' tab, it will be in form http://server_host_name/~your_cpanel_user_name , here is a temporary URL example we will use through this article:
Install Wordpress from your cPanel > Softacolous App Installer.
Locate the wordpress configuration file in /public_html/wp-config.php you can use the File Manager in cPanel to locate and edit the file
copy and paste this 2 lines at the top of the file and inside http://s82.etcserver.com/~good...'); define('WP_SITEURL','http://s82.etcserver.com/~good...');
Save the file and you are ready to check the installed Wordpress:
and login the admin area:
Once you finished your work, you can point your domain to our server and remove the 2 lines you added to wp-config.php file in step 3.
Wordpress uses mod_rewrite rules to remove index.php from the generated URLS, this rules must be modified as follow:
RewriteRule . /index.php [L]
RewriteRule . /~gooduser/index.php [L]