http.conf has mod rewrite uncommented
therefore, no custom routes work, someone from #laravel mentioned that this will be because mod rewrite does not work here, this is my setup:
laravel.conf has the following code:
Alias /laravel/ "C:\BitNami/frameworks/laravel/public/" Alias /laravel "C:\BitNami/frameworks/laravel/public" <Directory "C:\BitNami/frameworks/laravel/public"> Options +MultiViews AllowOverride None <IfVersion < 2.3 > Order allow,deny Allow from all </IfVersion> <IfVersion >= 2.3> Require all granted </IfVersion> </Directory>
If I uncomment these lines:
#RewriteEngine On
then the main route will be displayed on
http:
but not
http:
which is preferred but secondary to the main problem
.htaccess inside the public folder has the following:
<IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteBase /laravel </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] </IfModule>
here is my test code inside routes.php:
Route::get('test',function(){ return 'test worked'; });
which should be resolved with
http://localhost/laravel/test
but instead i get 404 error
source share