0

I am trying to access my website and I am getting this error:

No route found for "GET /index.php/en/"

Code:

try {
    if ($referer = $request->headers->get('referer')) {      
        $message .= sprintf(' (from "%s")', $referer);        
    }            
    throw new NotFoundHttpException($message, $e);    
} catch (MethodNotAllowedException $e) {        
    $message = sprintf(
        'No route found for "%s %s": Method Not Allowed (Allow: %s)',
        $request->getMethod(),
        $request->getPathInfo(),
        implode(', ', $e->getAllowedMethods())
    ); 
    throw new MethodNotAllowedHttpException(
        $e->getAllowedMethods(),
        $message,
        $e
    );   
}

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.