public 文件夹里的 .htaccess 写入代码
<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
标签:laravel,...,无法访问,REQUEST,FILENAME,RewriteCond,路由 From: https://www.cnblogs.com/zdcblog/p/16588958.html