Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/04/2012, 15:12
Avatar de iimeh
iimeh
 
Fecha de Ingreso: septiembre-2009
Mensajes: 25
Antigüedad: 14 años, 7 meses
Puntos: 2
Respuesta: Problema URL amigable y ocultar extencion

despues de mucho investigar no encontre nada jajajaja asi que me di a la tarea de experimentar con e codigo hasta llegar a la solucion y hechand un vistaso a post de WILLIAM.

http://www.maestrosdelweb.com/editorial/urlamigable/

Al fin me di cuenta de mi error dejo aqui la solucion por s alguin sufre igual que yo.

Las sentencias estaban mal ordenadas y bebian quedar asi.

Cita:
#Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^tema/(.+)$ tema.php?n=$1
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ $1.php
Asi primero eliminara el script de tema.php y por ultimo redireccionara la pagina sin necesidad del php.