activate .htaccess in debian / apache

0

I have a problem with my apache server that runs on debian 9.5 since it does not detect the .htaccess and activate the Module rewrite but apache does not recognize these redirections can you help me as it is activated this is locally running on a virtual host in / var / www / mipagina

    
asked by alfredo robles cervantes 19.12.2018 в 18:49
source

1 answer

0

when the virtualhost is created, it must have something like this

<VirtualHost *:80>
ServerAdmin template.email
DocumentRoot template.docroot
DirectoryIndex index.php
Options Indexes
ServerName template.url

<Directory template.docroot>
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
   AccessFileName .htaccess 

    </VirtualHost>

since without the directory with the route it will not take me the htaccess of the project

    
answered by 19.12.2018 / 23:15
source