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 a 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 the following in the top of the file:
Save the file and you are ready to check the installed Wordpress:
and login to 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, these rules must be modified as follows:
RewriteRule . /index.php [L]
RewriteRule . /~gooduser/index.php [L]