伙计们.我正在使用codeigniter.我使用.htaccess从我的url中删除'index.php',并将"Allow from all"添加到我的default.conf中.'index.php'已成功删除,网站正在运行.但是自上次更新apache以来,.htacess停止了工作,并且在URL中需要'index.php'.这是我新更新的000-default.conf.
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless. …
Run Code Online (Sandbox Code Playgroud)