.htaccess 在 Ubuntu Server x64 上不起作用


.htaccess not working on Ubuntu Server x64

我在XAMPP(Windows 8)上开发了一个应用程序。现在我将其移动到带有 Ubuntu 服务器 x64 的 VM,重写不再有效。
我希望总是在根文件夹(/var/www/html)中调用index.php,除非文件(http://10.0.0.XX/any_path/filename)存在于文件夹/var/www/html/app/web/(如/var/www/html/app/web/any_path/filename)中。
这是我的.htaccess:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^[A-z/]*$ index.php [L]
RewriteCond %{DOCUMENT_ROOT}/app/web/%{REQUEST_URI} -f
RewriteRule ^(.+)$ app/web/$1 [L]
</IfModule>

在Windows上的Xampp上,它工作正常,但在Ubuntu服务器上,它似乎不再工作了。 phpinfo()说模型mod_rewrite已加载。

感谢您的帮助!

编辑:
apache的AccessLog和ErrorLog没有说任何有用的东西。

AllowOverride 在 apache2.conf 中设置为 none。感谢@MarcB的提示!