.htaccess在Debian 7 apache2上不起作用

时间:2015-02-01 07:30:36

标签: apache2 debian

我将AllowOverride None更改为AllowOverride All。我在终端中执行了a2enmod rewrite并重新启动了apache2 ...但我的.htaccess文件无法正常工作。

命令a2enmod rewrite

<Directory />
    Options FollowSymLinks
     AllowOverride All
</Directory>
<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

<Directory /usr/share/phpmyadmin>
    Options FollowSymLinks
    DirectoryIndex index.php
    AllowOverride All
    Order allow,deny
    deny from all
</Directory>

我的.htaccess文件:

order deny,allow
deny from all

命令:

service apache2 restart

0 个答案:

没有答案