How to fixed route not found 404 error in Laravel 5.5 application

How to fixed route not found 404 error in Laravel 5.5 application

Hello Techies, Sorry, it’s a long time to update here today I am going to write One of issue “route not found” 404 error that’s happened with me when I was Building a laravel application for a client. This error occurs because of the .htaccess file many times it happened when you transfer the website to localhost to development server OR one server to another server so their .htaccess file can create a problem to switch and access the route paths.




404 Not Found route not found laravel

So Did you notice ever these kinds of issues? achieve the solutions? If not then here we go and take the below snippets in your .htaccess file.

Here I am writing the .htaccess file. Just you need to open your laravel working directory and copy this code and paste under the .htaccess file to resolve the “route not found” 404 error

.htaccess file





<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>

RewriteEngine On

# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]

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




Hope this will resolve the issue of Route, not found.

Krishna Gupta

Krishna Ballabh Gupta is a Gold Medalist Full Stack Developer & Algorithm Designer and Founder of TechnologyShouters. He generally Blogs about Python, JavaScript, jQuery, AngularJS, Database, PHP, AJAX and something that interesting.

Related Posts

Create Account



Log In Your Account



1Subscribe to Our Live Updates.