gyaani_guy
gyaani_guy

Reputation: 3209

Difference between messages : 'server returning 404' AND 'No route found for GET /routeName

windows 8. symfony 2.7 installed with default settings on d:\htdocs\sym\again\blog\

Oops! An Error Occurred The server returned a "404 Not Found". Something is broken. Please let us know what you were doing when this error...

INFO: The above error is different from regular apache 404 'object not found' message. for http://localhost/NonExistingPage

With the built in PHP server php app/console server:run,

No route found for "GET /NonExistingRoute" 404 Not Found - NotFoundHttpException 1 linked Exception: ResourceNotFoundException »

Another Strange thing:

if routing.yml is changed to:

offtopic_books_homepage:
path:     /sym/again/blog/web/hello
defaults: { _controller: OfftopicBooksBundle:Default:index }

then

http://localhost:8000/sym/again/blog/web/hello - returns the expected page. (with app/console running)
Whereas http://localhost/sym/again/blog/web/hello - gives the following error:

Oops! An Error Occurred The server returned a "404 Not Found".

Why ?

Upvotes: 1

Views: 1382

Answers (1)

Kamil Adryjanek
Kamil Adryjanek

Reputation: 3338

In this case please reset cache for prod env:

php app/console c:c -e prod

Note: Please use dev env and app_dev.php for development, not production environment.

Upvotes: 0

Related Questions