Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/04/2007, 21:10
Avatar de Marvin
Marvin
Colaborador
 
Fecha de Ingreso: febrero-2005
Ubicación: global $Chile->Santiago;
Mensajes: 1.991
Antigüedad: 19 años, 3 meses
Puntos: 81
Pregunta problema con mod_rewrite (xampp)

Bueno... no encontre mucha ayuda por la web y la verdad estoy algo cansado de buscar...

El problema es el siguiente:

Cree un archivo .htaccess en la carpeta misitio/blog/ que tiene:
Código:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^/blog/([a-z]+)(.*)php http://misitio/index.php?etapa=verBlog 
Descomentando la linea LoadModule rewrite_module modules/mod_rewrite.so de httpd.conf me sale el siguiente error:
Código:
[Sun Apr 15 23:02:12 2007] [error] [client xxx.xxx.xxx.xxx] script 'misitio/blog/index.php' not found or unable to stat
Comentando la linea LoadModule rewrite_module modules/mod_rewrite.so:
Código:
[Sun Apr 15 23:04:17 2007] [alert] [client xxx.xxx.xxx.xxx] misitio/blog/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
(obviamente porque no tiene el mod_rewrite)

Tambien modifique esto en httpd.conf:
Código:
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>
a esto:
Código:
<FilesMatch "^\.htaccess">
    Order allow,deny
    Allow from all
</FilesMatch>

<FilesMatch "^\.htpasswd">
    Order allow,deny
    Deny from all
</FilesMatch>
No se si me hace falta modificar otras cosas pero hasta ahora no he podido hacerlo funcionar.

Muchas gracias de antemano.
__________________
El que dice "Solo sé que nada sé", esta asumiendo que sabe algo.
Lea las FAQ's!