Ver Mensaje Individual
  #10 (permalink)  
Antiguo 17/07/2013, 14:32
eternoaprendiz
 
Fecha de Ingreso: junio-2013
Ubicación: Madrid
Mensajes: 73
Antigüedad: 10 años, 10 meses
Puntos: 27
Respuesta: Error en framework SILEX

Cita:
Iniciado por Montes28 Ver Mensaje
cando entro a [url]http://localhost/silex/web/hello[/url]

obtengo este error
Not Found

The requested URL /silex/web/hello was not found on this server.


en ..htaccess tengo esto
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

Creo que deberías añadir algo como:

Código:
RewriteBase /silex/web/
Ya que web debería ser el raíz del localhost. Con esa directiva "/silex/web/" las peticiones deberían llegar correctamente al index.php

Puedes crearte un virtualhost cuyo DocumentRoot apunte directamente a esa carpeta.