我有一个Laravel应用程序在本地主机上工作,没有/index.php/因为。htaccess文件,我猜。
但由于某些原因,我不得不使用Apache2的虚拟主机,我称之为"website.dev"现在/index.php/字符串出现在我所有的url中
你能帮个忙吗?
我试过了:
<Directory /var/www/html>
AllowOverride All
</Directory>
尝试将此添加到。htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]