小编Cod*_*ict的帖子

Apache 2.4.6 default.conf格式发生了变化.无法运行.htaccess

伙计们.我正在使用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)

ubuntu .htaccess codeigniter apache2

7
推荐指数
2
解决办法
8112
查看次数

标签 统计

.htaccess ×1

apache2 ×1

codeigniter ×1

ubuntu ×1