AllowOverride changed for all and still nothing

I tried to write the .htaccess file on my local PC website,
I realized that I need to install AllowOverride All instead of None search, found the file / etc / apache 2 / conf.d / security in the found file

#<Directory />
#AllowOverride None
#Order Deny,Allow
#Deny from all
#</Directory>

changed it to

<Directory />
    AllowOverride All
    Order Deny,Allow
    Deny from all
</Directory>

recruited

service apache2 restart

and .... htaccess still does not work: I

the file, by the way, contains one line, refuse all.

+5
source share
1 answer

Reply from the original poster:

Finally found the right place: / etc / apache2 / sites-available / default find

<directory /var/www/>  part, and changed it to:

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

All Articles