Difference between revisions of "Habilitar .htaccess"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
=== Ubuntu 12.04 === | === Ubuntu 12.04 === | ||
Activar AllowOverride, para eso se debe editar el fichero '''default''' | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 14: | Line 14: | ||
=== 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> | |||
# Cambiar "AllowOverride None" por "AllowOverride All".<br> | |||
== Activar mod_rewite == | == Activar mod_rewite == | ||
Line 37: | 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