我正在尝试在 ubuntu 服务器 14.04 LTS 上删除 lumen 5.2 上的公共路径
这是我的 .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
我已经在我的 apache 上允许mod_rewrite
还将此添加到我的 apache2.conf 以允许覆盖
<Directory /var/www/html/lumen>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
我收到错误
Sorry, the page you are looking for could not be found.
但是,如果我添加了public
url 的路径,它就可以工作。有人遇到这个问题吗?
我正在尝试将网址
http://www.example.com/public
设为http://www.example.com/