2

我已经下载了SimpleInvoices开源应用程序。它的.htaccess文件有以下代码

IndexIgnore *

<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh|tpl)$"> 
    Order Allow,Deny 
    Deny from all 
</FilesMatch>

<FilesMatch "\.(htm|html|css|js|php)$">
    AddDefaultCharset UTF-8
</FilesMatch>

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?([a-zA-Z0-9_]+)-([a-zA-Z0-9_]+)-([a-zA-Z0-9_]+)?$ index.php?module=$1&view=$2&id=$3

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?([a-zA-Z0-9_]+)-([a-zA-Z0-9_]+)$ index.php?module=$1&view=$2 [L]

即以IndexIgnore *指令开头。

不幸的是,该指令在我的 Apache/2.2.17 (Win32) PHP/5.3.8(在 Windows 8 上运行)上导致错误。

为什么?

4

0 回答 0