Difference between revisions of "Habilitar .htaccess"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== Configuración de apache == | == Configuración de apache == | ||
=== Ubuntu 12.04 === | |||
Activar AllowOverride, para eso se debe editar el fichero '''default''' | Activar AllowOverride, para eso se debe editar el fichero '''default''' | ||
Line 9: | Line 11: | ||
y cambiar '''AllowOverride None''' por '''AllowOverride All'''.<br> | y cambiar '''AllowOverride None''' por '''AllowOverride All'''.<br> | ||
=== Mac OS X 10.7.5 === | |||
# Abrir el siguiente archivo. | |||
<syntaxhighlight lang="bash" line> | |||
sudo open -a TextWrangler /etc/apache2/httpd.conf | |||
</syntaxhighlight> | |||
# Dentro de "<Directory "/Users/alex/Sites/">". | |||
# Cambiar "AllowOverride None" por "AllowOverride All".<br> | |||
== Activar mod_rewite == | == Activar mod_rewite == | ||
=== Ubuntu 12.04 === | |||
Ingresar el siguiente comando:<br> | Ingresar el siguiente comando:<br> | ||
Line 19: | Line 33: | ||
<syntaxhighlight lang="bash" line start="2"> | <syntaxhighlight lang="bash" line start="2"> | ||
sudo service apache2 restart | sudo service apache2 restart | ||
</syntaxhighlight> | |||
=== Mac OS X 10.7.5 === | |||
Reiniciar Apache2:<br> | |||
<syntaxhighlight lang="bash" line start="2"> | |||
sudo apachectl restart | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 20:09, 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
y 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