Habilitar .htaccess

From Wiki de Caballero
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Configuración de apache

Ubuntu 12.04

Activar AllowOverride, para eso se debe editar el fichero default

sudo gedit /etc/apache2/sites-available/default
  1. Cambiar AllowOverride None por AllowOverride All.

Mac OS X 10.7.5

Abrir el siguiente archivo.

sudo open -a TextWrangler /etc/apache2/httpd.conf
  1. Dentro de "<Directory "/Users/alex/Sites/">".
  2. Cambiar "AllowOverride None" por "AllowOverride All".

Activar mod_rewite

Ubuntu 12.04

Ingresar el siguiente comando:

sudo a2enmod rewrite


Reiniciar Apache2:

sudo service apache2 restart

Mac OS X 10.7.5

Reiniciar Apache2:

sudo apachectl restart