show the rest of your .conf file
is it an apache 404 or laravel 404?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
We deployed a Laravel application on a development server
I have a 404 of Laravel on all my routes, root included.
I did composer dump-autoload, php artisan clear-compiled, php artisan optimize, restart apache
for the config, we have a .htaccess file with :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !/public
RewriteRule ^(.*)$ public/ [L]
</IfModule>
and in the .env we set APP_ENV=staging and APP_URL="..."
Apache conf :
<Directory "...">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
The application works fine on my PC with php artisan serve
Please or to participate in this conversation.