3👍
✅
You can try to set the document root directory as ‘public’ directory on the domain settings page of cPanel.
or you can use .htaccess file like that;
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain-name.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain-name.com$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]
👤Y.C.
Source:stackexchange.com