-1

我正在尝试设置 Zend Expressive 并遵循本教程: https ://zend-expressive.readthedocs.io/en/latest/cookbook/using-a-base-path/

在我看来,我的 mod_rewrite 指令没有得到遵守。
如何确保 Apache 尊重我.htaccess文件中的指令?

4

1 回答 1

0

将此添加到 Apache 配置文件并重新启动 apache 服务似乎使其工作:

<Directory /var/www/html>
   AllowOverride All
   Require all granted
</Directory>
于 2017-11-14T01:03:38.200 回答