1
I got a problem with this one website it appears this error on the screen when I try to access it what can this mistake be as I do to fix it.
My parents:
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::post('/', 'FormController@postContato');
O . HTACCESS
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
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}]
</IfModule>
# Habilitar o PHP 5.5
AddHandler application/x-httpd-php55 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php55/lib
</IfModule>
You have a route problem. You are accessing a non-existent route. Enter the Routes.php and your main Controller to open the main page.
– Diego Souza
As his
.htaccess
is configured? Are you using shared or dedicated server? Generally, in shared you can not configure the appointment (by Apache).– Wallace Maxters
Take a look at this question: http://answall.com/questions/43685/problema-com-subpastas-e-reescrita-de-url-comlaravel
– Wallace Maxters
Here also: http://answall.com/questions/88265/publicar-laravel-5-em-uma-subpasta
– Wallace Maxters
I will edit my post with these guidelines
– Felipe Henrique
Put the Formcontroller too
– Diego Souza
@Wallacemaxters edited my post from a look
– Felipe Henrique
@Gumball I edited my post from a look
– Felipe Henrique
It is. Silly of me to say that.
– Diego Souza
@Kirito curiosity: Have you published Laravel in the "public_html" folder? or something like a "main folder"? If so, this may be the problem. Like I said, it’s very common on shared servers.
– Wallace Maxters