From the start your website is loaded from folder that called “public_html”. This directory is also called the root directory. If you made new (or test) website in a sub-folder and you want the site to be shown when you type the domain name of your web site, then add lines listed below to your .htaccess file in the root folder:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomainname.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.yourdomainname.com$
RewriteCond %{REQUEST_URI} !folder/
RewriteRule (.*) /folder/$1 [L]
Change following in the above lines:
domain-name.com – Domain name of your site.
folder – Subfolder that contains the test web site files.
You can use cPanel->File Manager to create new .htaccess file if there is no file in the public_html folder.
Then just type domain name of your site, and your browser should show the test website.