Configurar mod_rewrite en Linux Mint o Ubuntu

No conseguía hacer funcionar el modulo rewrite y me pase un buen rato buscando y si bien en varios lugares encontré las indicaciones por alguna razón no funcionaba, me estaba faltando el último punto que detallo aquí.


sudo a2enmod rewrite
sudo nano /etc/apache2/sites-available/default

Cambiar en public_html “AllowOverride None” por “AllowOverride All”

<VirtualHost *:80>
ServerAdmin webmaster@localhost
RewriteEngine on
DocumentRoot /home/ariel/public_html/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/ariel/public_html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

sudo service apache2 restart

Deja un comentario

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>