Answer the question
In order to leave comments, you need to log in
Redirect to index.php not working in Laravel 5 project?
So. We have the following:
.htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
UseCanonicalName Off
<VirtualHost *:80>
ServerName dev
ServerAlias *.dev
VirtualDocumentRoot /Volumes/HDD/Sites/%1
</VirtualHost>
<VirtualHost *:80>
ServerAlias *.lar
VirtualDocumentRoot "/Volumes/HDD/Sites/%1/public"
</VirtualHost>
Route::get('/', function () {
return view('welcome');
});
Route::get('/home', function () {
return 'some';
});
127.0.0.1 mysite.lar
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question