May 19, 2021
2
Level 1
Error 404 instead of login page while using xampp localhost
Hello,
When I hit localhost/appname I am getting my custom 404 page instead of the login page.
My routes (It was working perfectly fine with php artisan serve. As far as I know I am protecting the routes with Auth, so in either way it should redirect me to the login page):
Auth::routes(['register' => false]);
Route::group(['middleware' => ['auth']], function () {
Route::redirect('/','systemlist/systemid');
If my code is correct I am assuming that, something wrong with my virtual host configuartion:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/xampp72/htdocs/hanacmtv1.0/public"
ServerName cmt.com
ServerAlias www.cmt.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
Does anyone experienced this?
Please or to participate in this conversation.