Google Search Console is indexing config files

Problem is that its hosted on WHM/cPanel and I haven’t found out how to change document root from public_html to public_html/web. I’ve searched and searched bout found no real solution to that.

Am currently having to use a .htaccess in public_html

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} $
    RewriteCond %{REQUEST_URI} !^/web/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /web/$1
    RewriteCond %{HTTP_HOST} $
    RewriteRule ^(/)?$ web/index.php [L]
</IfModule>