Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nanadjei2's avatar

Request Status Code 404 not found

I moved my project into production and from then I keep getting Status Code: 404 Not Found. In my console as a result of that my ajax call are not working. And they all return this same response. Can any one help me ?

0 likes
8 replies
munazzil's avatar

Have you try with

php artisan down

After that

php artisan up
nanadjei2's avatar

Still not working. The error is showing in my console.

This is my .htaccess file.

` Options -MultiViews -Indexes

     RewriteEngine On

     # Handle Authorization Header
     RewriteCond %{HTTP:Authorization} .
     RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

     # Redirect Trailing Slashes If Not A Folder...
      RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_URI} (.+)/$
     RewriteRule ^ %1 [L,R=301]

     # Handle Front Controller...
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^ index.php [L]
  </IfModule>`
realrandyallen's avatar

Make sure you're pointing to the public directory in your project, for example with Apache:

DocumentRoot /var/www/your-project/public

okusax's avatar

Remember to enable Options +FollowSymLinks and enable mod_rewrite in apache

Please or to participate in this conversation.