Laravel root directory can access Route::get ('/', ' [email protected] ');
The non-root directory will be 404 pages can not find the error, as follows
Route::get (' user ', ' [email protected] ');
Workaround:
First before installing
1,php Open Phpopenssl
2, open rewrite in Apache conf
Modules (#LoadModule rewrite_module modules/mod_rewrite.so)
3, locate directory in the Conf file to change allowoverride None to allowoverride all
<directory "C:/apache24/htdocs" >
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
4, add the. htaccess file under the public directory of the Project project Laravel, the file contents are as follows
<ifmodule mod_rewrite.c>
Options-multiviews
Rewriteengine on
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
rewriterule ^ index.php [L]
</IfModule>
(currently Apache server resolved, Nginx server is not successfully resolved after the post-resolution update)
Laravel 404 error, Laravel root directory can be accessed, non-root directory will appear 404 page could not find the error