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 ?
Have you try with
php artisan down
After that
php artisan up
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>`
Make sure you're pointing to the public directory in your project, for example with Apache:
DocumentRoot /var/www/your-project/public
@NANADJEI2 - Does it work without the .htaccess file?
Remember to enable Options +FollowSymLinks and enable mod_rewrite in apache
Please sign in or create an account to participate in this conversation.