Modify the .htaccess settings to redirect root folder to public folder.