Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/06/2008, 19:39
exangel
 
Fecha de Ingreso: abril-2008
Mensajes: 613
Antigüedad: 16 años, 1 mes
Puntos: 22
Respuesta: .htaccess y una pequeña duda.

Hola,
Te transcribo tal como lo he leído en otro sitio:
Imaginemos que quiero que a un directorio cuando se escriba noticia/2.html se dirija a noticia.php?n=2


Código: htaccess
Rewriterule ^noticia/(.*)\.html$ noticia.php?n=$1

Un saludo
__________________
Compartir es vivir
www.programador-php.com