Difference between revisions of "Habilitar .htaccess"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
Activar AllowOverride, para eso se debe editar el fichero '''default''' | Activar AllowOverride, para eso se debe editar el fichero '''default''' | ||
<syntaxhighlight lang="bash" | <syntaxhighlight lang="bash"> | ||
sudo gedit /etc/apache2/sites-available/default | sudo gedit /etc/apache2/sites-available/default | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# Cambiar '''AllowOverride None''' por '''AllowOverride All'''.<br> | |||
=== Mac OS X 10.7.5 === | === Mac OS X 10.7.5 === | ||
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> | ||
# Dentro de "<Directory "/Users/alex/Sites/">".<br> | |||
# Dentro de "<Directory "/Users/alex/Sites/">". | |||
# Cambiar "AllowOverride None" por "AllowOverride All".<br> | # Cambiar "AllowOverride None" por "AllowOverride All".<br> | ||
Line 38: | Line 37: | ||
Reiniciar Apache2:<br> | Reiniciar Apache2:<br> | ||
<syntaxhighlight lang="bash | <syntaxhighlight lang="bash"> | ||
sudo apachectl restart | sudo apachectl restart | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 20:12, 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
Abrir el siguiente archivo.
sudo open -a TextWrangler /etc/apache2/httpd.conf
- Dentro de "<Directory "/Users/alex/Sites/">".
- 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