I have moved the .htaccess outside the public folder then it start working.
Thanks
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I have uploaded the laravel project in web hosting CPANEL and home page only working.
I have created a folder called customer and I have uploaded all the files and folders except the public folder and I have copied the files from the public folder to public_html folder and I have edited index.php inside the public_html and added the folder name like below
require __DIR__.'/../customer/vendor/autoload.php';
$app = require_once __DIR__.'/../customer/bootstrap/app.php';
when I hit the URL home page is working but when I click some other link it is saying 404 error.
Any one please help me.
Thanks
Please or to participate in this conversation.