如何删除生成的Laravel网址中的“公共/索引.php”?
2022-08-30 07:45:20
我需要删除或从Laravel中生成的URL中删除;通常路径是,它应该是这样的index.php
public/index.php
localhost/public/index.php/someWordForRoute
localhost/someWordForRoute.
.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]
应用程序/配置/应用程序.php
'url' => 'http://localhost',
我该如何改变这一点?