![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
08/09/2009, 15:40
|
![Avatar de Pedro_valencia](http://static.forosdelweb.com/customavatars/avatar208142_1.gif) | | | Fecha de Ingreso: diciembre-2007 Ubicación: Valencia
Mensajes: 82
Antigüedad: 17 años, 1 mes Puntos: 6 | |
Respuesta: url amigables Lo primero en htaccess quedaría así: www.midominio.com/hotel_grande/1/
o www.midominio.com/1/hotel_grande/
o www.midominio.com/1/hotel_grande.html
Etc..., pero creo que en todos los casos debería llevar el id de alojamiento en la url.
Código:
ReWriteRule ^([a-z0-9_-]+)/([0-9]+)/$ ficha/detalle.php?id_alojamiento=$2
__________________ Si te ha servido mi post, ¡dame Karma, es gratis!
- ¿Qué es el éxito? Lo diferente. |