-1

I am trying to set up Zend Expressive and following this tutorial: https://zend-expressive.readthedocs.io/en/latest/cookbook/using-a-base-path/

It appears to me that my mod_rewrite directives are not being honored.
How can I ensure that Apache honors directives in my .htaccess file?

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141
Dennis
  • 7,907
  • 11
  • 65
  • 115
  • 1. https://wiki.apache.org/httpd/RewriteLog 2. https://haydenjames.io/disable-htaccess-apache-performance/ – Sammitch Nov 14 '17 at 00:03
  • I have apache2.4, which uses different logging. Namely looks like `LogLevel alert rewrite:trace6`. Also it says I have to put it into VirtualHost and not into `.htaccess`. Going to try this out. – Dennis Nov 14 '17 at 00:11
  • sadly the logging directive does not appear to show anything in my `error.log` file. Also, copying directives from `.htaccess` file into my `VirtualHost` directive and restarting apache also does nothing. – Dennis Nov 14 '17 at 00:24

1 Answers1

0

Adding this to Apache configuration file and restarting apache service seems to be making it work:

<Directory /var/www/html>
   AllowOverride All
   Require all granted
</Directory>
Dennis
  • 7,907
  • 11
  • 65
  • 115