3

I have a project in symfony and apache, also, I have a web/images folder where I store some images.

The problem is that when I type the following url: mydomain:app_dev.php/images/myimage.png I get back this error:

No route found for GET /images/myimage.png

Any other url works fine.

Why is this happening? why cant this just be like a plain apache website where you type in the image url and get it back?

Thanks

1 Answer 1

1

Links that use static content should not use app_dev.php or app.php. This will allow it to be retrieved as if it was a 'plain apache website' or what ever web server you are using.

This should work the way you want it to.

mydomain:images/myimage.png

Sign up to request clarification or add additional context in comments.

1 Comment

What would happen if my virtual host points directly to app_dev.php? What work around could I use?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.