I solved the problem by modifying the file .htaccessDid you find a solution to this problem?Code:RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.com/ [R,L] RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] # php -- BEGIN cPanel-generated handler, do not edit # Set the “alt-php80” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-alt-php80___lsphp .php .php8 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit