Symfony - The requested URL ….. was not found
Esto pasa con poca frecuencia, tenemos habilitado nuestro mod_rewrite y sin embargo nuestro entorno de producción no funciona dándonos el tedioso mensaje: The requested URL “ruta” was not found.
La solución a esto se encuenta en el archivo .htaccess del proyecto. A continuación muestro el contenido del mismo y la línea que debe ser descomentada.
Options +FollowSymLinks +ExecCGI
RewriteEngine On
# uncomment the following line, if you are having trouble
# getting no_script_name to work
# RewriteBase / #ESTA ES LA LINEA QUE DEBE SER DESCOMENTADA
# we skip all files with .something
# comment the following 3 lines to allow periods in routes
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
# big crash from our front web controller
ErrorDocument 500 "
Application error
symfony application failed to start properly"
Y listo, una vez realizado este cambio, el entorno de producción de tu proyecto funcionará sin incovenientes.
Saludos,
Henry Vallenilla
Programador Senior
Categories: Symfony


















Facebook
Twitter
LinkedIn
me sigue dando error, teniendo el no_script_name en todos los entornos a ‘on’ y descomentando esta línea
@ey
Amigo verifica el Virtual Host, si está direccionando correctamente.
Saludos !!!
tengo un problema con el entorno de prod, a mi este entorno me sale perfectamente por la pagina localhost/index.php pero cuando le doy a algun vinculo del sistema el mismo me manda para localhost/modulo/action y este me da error The page cannot be found o sea pierde la direccion si me pudieran ayudar lo agradeceria mucho
gracias de antemano
Amigo verifica el Virtual Host, si está direccionando correctamente.