在论坛上几个小时后我找不到解决方案,所以我希望您能提供帮助。
我设置了一个灯服务器,我正在尝试修复路由原因以启用路由,我需要添加IP/ index.php /route
这是my/etc/apache2/sites-available/html.conf
<VirtualHost *:80>
DocumentRoot /var/www/html/public
</VirtualHost>
这是我的.htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
Options +FollowSymLinks
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
我也跑了
sudo a2ensite html.conf
sudo a2dissite 000.default.conf
sudo a2enmod rewrite
我重新启动了服务器 - 请帮助!
我更改了bloweroverride none none in
/etc/apache2/apache2.conf