3 回答

TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超9個(gè)贊
/etc/apache2/apache2.conf
/var/www
):
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
sudo service apache2 restart
sudo a2enmod rewrite

TA貢獻(xiàn)1772條經(jīng)驗(yàn) 獲得超6個(gè)贊
AllowOverride
AllowOverride None
Directory
.htaccess
/my/path/to/a/directory
<Directory /my/path/to/a/directory>
.htaccess
.htaccess
.htaccess
<Directory>
<Directory />
<Directory C:>
<Directory /my/path/to/a/directory>
.htaccess
.htaccess
AllowOverride
.htaccess
.htaccess
添加回答
舉報(bào)