Answer the question
In order to leave comments, you need to log in
What's wrong with Route?
+--------+----------+------+------+-------------------------------------------+------------+
| Domain | Method | URI | Name | Action | Middleware |
+--------+----------+------+------+-------------------------------------------+------------+
| | GET|HEAD | / | | Closure | |
| | GET|HEAD | test | | App\Http\Controllers\[email protected] | web |
+--------+----------+------+------+-------------------------------------------+------------+
Answer the question
In order to leave comments, you need to log in
Perhaps you need to check if the mod_rewrite module is enabled in Apache. If it is connected and working, then there may be something wrong in .htaccess
UPD: As far as I understand, Apache was just installed, but mod_rewrite in Apache is not enabled by default, you have to enable it yourself. In the terminal , a2enmod rewrite , and in the /etc/apache2/apache2.conf config, edit the /var/www directory
<Directory /var/www/>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
php artisan cache:clear
php artisan route:clear
composer dump
In addition to Ernest Faizullin's answer:
Author, check that the framework's launch path points exactly to the "public" folder:
<Directory /var/www/public/>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question