Not Found Page in Laravel

After install laravel framework in computer, and launch it in browser, sometime we meet alittle error in laravel web page. Maybe like this error :

page error

page error

when we meet that error, maybe we don’t know how to fix it, because we believe our setting laravel is ok. when we check route.php is not problem, and we check controller is not problem too. The error page says, “Not Found” and never talk about error in our script code. After find a sollution in google, many sollution can be read about this error. Read one by one of the link reference that give a sollution of error, and try it to code to fix it.

First, the sollution give a direction to fix the .htaccess, open and edit it :

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

RewriteEngine On

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

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

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

if .htaccess not gives a sollution….and try or add another sollution.

Second, the sollution give a direction to fix the httpd.conf in your web server :

<Directory “C:/wamp/www/laravel/sampleApp/”>
Options Indexes FollowSymLinks
Allowoverride All
Require all granted

add that code in the httpd.conf, if the httpd.conf already have default documentroot, it won’t take a effect in the process of initialize a documentroot.

After edit the httpd.conf, restart the apache, and refresh again your laravel web in browser. try click the link to open the page.

i hope it will work….


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s