I wrote the following code in the Controllers. The code with the slash is working but the code with the reference is not working.
I get 500 Internal Server Error whenever I am not using a slash
Route::get('/', 'WelcomeController@index');
Route::get('welcome', function()
{
return 'Welcome Page';
});
The following is my .htaccess files
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteEngine On RewriteBase
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
The following is the conf file
Alias /pitcher.dev "C:/wamp/www/pitcher.dev/public/"
<Directory "C:/wamp/www/pitcher.dev/public/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
I am using windows and wamp server. The mod_rewrite is enabled.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1PHUtWZ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire