Difference between revisions of "Habilitar .htaccess"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
=== Mac OS X 10.7.5 === | === Mac OS X 10.7.5 === | ||
1. Abrir el siguiente archivo. | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo open -a TextWrangler /etc/apache2/httpd.conf | sudo open -a TextWrangler /etc/apache2/httpd.conf | ||
</syntaxhighlight> | </syntaxhighlight> | ||
2. Dentro de "<Directory "/Users/alex/Sites/">". | 2. Dentro de "<Directory "/Users/alex/Sites/">".<br> | ||
3. Cambiar "AllowOverride None" por "AllowOverride All".<br> | 3. Cambiar "AllowOverride None" por "AllowOverride All".<br> | ||
Revision as of 20:10, 1 April 2014
Configuración de apache
Ubuntu 12.04
- Activar AllowOverride, para eso se debe editar el fichero default
sudo gedit /etc/apache2/sites-available/default
- Cambiar AllowOverride None por AllowOverride All.
Mac OS X 10.7.5
1. Abrir el siguiente archivo.
sudo open -a TextWrangler /etc/apache2/httpd.conf
2. Dentro de "<Directory "/Users/alex/Sites/">".
3. 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