Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/11/2010, 15:23
kenproxd
 
Fecha de Ingreso: agosto-2009
Mensajes: 349
Antigüedad: 15 años, 6 meses
Puntos: 8
Problema con htaccess en url amigable

Hola :)

Me mandaron para aqui ya que tengo el siguiente problema:

Tengo un archivo Entrevista.php

Código PHP:
Ver original
  1. <?PHP
  2. $ganadores= !isset($ganadores) ? 0 : $ganadores;
  3. $ganadores=$_GET[ganadores];
  4.                         switch ($ganadores) {
  5.                            case octubre:
  6.                               include("octubre.php");
  7.                               break;
  8.                           case noviembre:
  9.                               include("noviembre.php");
  10.                              break;
  11.                          default:
  12.                               include("entrevistas_temp.php");
  13.                        }
  14. ?>


En mi archivo .htaccess tengo lo siguiente:

Código Apache:
Ver original
  1. RewriteEngine on
  2.  
  3. RewriteCond &#37;{REQUEST_FILENAME} !-f
  4. RewriteCond %{REQUEST_FILENAME} !-d
  5. RewriteRule ^(.*)$ $1.php [L,QSA]
  6.  
  7. Rewriterule ^(.*)/(.*)/(.*)$ $1.php?$2=$3

y para llamar a los archivos hago esto:
Código HTML:
Ver original
  1. <a href="Entrevistas/ganadores/octubre">Octubre</a>

Pero me da el siguiente error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please etc etc.......

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


Espero que me puedan ayudar :)