I used a plain config and added
LoadModule rewrite_module modules/mod_rewrite.so
DocumentRoot "C:/Projects/web/"
Alias / "C:/Projects/web/"
<Directory "C:/Projects/web">
Options Indexes FollowSymLinks Includes ExecCGI
Require all granted
AllowOverride All
Order allow,deny
Allow from all
</Directory>
My .htaccess looks like:
RewriteEngine On
RewriteRule ^(..)/([^/]+)$ /index.php?lang=$1&cat=$2 [L]
RewriteRule ^(..)/([^/]+)/([^/]+)$ /index.php?lang=$1&cat=$2&sub=$3
The regex are correct. In the logfiles I got:
[Fri Oct 28 19:37:50.483153 2016] [core:alert] [pid 5508:tid 1056] [client ::1:49898] C:/Projects/web/.htaccess: RewriteEngine not allowed here
[Fri Oct 28 19:37:51.385204 2016] [core:alert] [pid 5508:tid 1056] [client ::1:49899] C:/Projects/web/.htaccess: RewriteEngine not allowed here
I tried to get more verbose output by setting LogLevel alert rewrite:trace8
and LogLevel debug
but it doesn't help.