Ver Mensaje Individual
  #16 (permalink)  
Antiguo 20/09/2010, 23:56
Avatar de neodani
neodani
 
Fecha de Ingreso: marzo-2007
Mensajes: 1.811
Antigüedad: 17 años, 2 meses
Puntos: 20
Respuesta: Mejorar web modular

Cita:
Iniciado por fernandozunni Ver Mensaje
El htaccess de la url amigable tambien puede ir asi, pero yo creo que como vos la escribiste esta bien:

RewriteRule ^articulo/([A-Za-z0-9]+)/?$ index.php?pagina=articulo&urlamigable=$1 [NC,L]
Pues lo he probado así, comentando la linea anterior por si era incompatible con esta, cambiándole el orden de las lineas y nada.

Se resiste esta web modular...

Código Apache:
Ver original
  1. RewriteEngine on
  2. RewriteBase /
  3.  
  4. # WWW al dominio
  5.     RewriteCond %{HTTP_HOST} !^www\.webme\-modular\.com$
  6.     RewriteRule (.*) http://www.webme-modular.com/$1 [R=301,L]
  7.  
  8. # Mostrar la pagina de inicio
  9.     RewriteCond %{QUERY_STRING} ^$
  10.     RewriteRule ^$ index.php?pagina=home [L]
  11.  
  12. # Cargar paginas de primer nivel
  13.     RewriteCond %{SCRIPT_FILENAME} !-f
  14.     RewriteCond %{SCRIPT_FILENAME} !-d
  15.     RewriteRule (.*) index.php?pagina=$1 [QSA,L]
  16. #   RewriteRule ^articulo/(.+)?$ index.php?pagina=articulo&urlamigable=$1 [NC,L]
  17.     RewriteRule ^articulo/([A-Za-z0-9]+)/?$ index.php?pagina=articulo&urlamigable=$1 [NC,L]

¿Alguien lo puede probar en su servidor y decirnos si le funciona, empiezo a pensar que soy yo...?

Muchas gracias de antemano!