If your website’s files are available in sub folder but you want to access the files directly with domain name then you can redirect your domain with the help of .htaccess file.
You can add below code in .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC,OR]...