Activar mod_rewrite en Apache – Centos 6.2

Publicado: febrero 26, 2012 en Uncategorized

Summary

This module uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule, to provide a really flexible and powerful URL manipulation mechanism. The URL manipulations can depend on various tests, of server variables, environment variables, HTTP headers, or time stamps. Even external database lookups in various formats can be used to achieve highly granular URL matching.

This module operates on the full URLs (including the path-info part) both in per-server context (httpd.conf) and per-directory context (.htaccess) and can generate query-string parts on result. The rewritten result can lead to internal sub-processing, external request redirection or even to an internal proxy throughput.

Further details, discussion, and examples, are provided in the detailed mod_rewrite documentation.

Tomado de: http://httpd.apache.org/docs/current/mod/mod_rewrite.html

 

Editamos el archivo:

# nano /etc/httpd/conf/httpd.conf

Localizamos la línea => AllowOveride None

y cambiamos por => AllowOveride All

Ejemplo:
<Directory "/var/www/html">
             Options FollowSymLinks
             AllowOverride All
<Directory>

Reiniciamos el servidor Apache

# service httpd restart

La necesidad de activar el mod_rewrite fue porque necesitaba hacer funcionar KumbiaPHP Framework PHP.

by Mauroxan

Deja un comentario