My problem is this: I developed it locally and made a rich text editor UEditor. For convenience, I followed the original configuration and put the php file under js. The whole path is like this: http:/ /localhost/msk/web/bund..., this is the path for local development. Among them, msk is a project folder in the root directory. There is no problem at this time. Everything in rich text can be uploaded. But when I uploaded it to the server online, the path I got was like this: http://host ip/bundles/msk/public/js/php/controller.php?action=config&&noCache=1471224486130, but at this time A 404 error was generated. I would like to ask, is the developer mode of symfony different from the normal mode? Is it necessary to read the route registration method? Also, in order to test whether the path is correct, I put a picture up, but it can also be read. Is it just that the php file cannot be read? Thank you for your generous advice.
My problem is this: I developed it locally and made a rich text editor UEditor. For convenience, I followed the original configuration and put the php file under js. The whole path is like this: http:/ /localhost/msk/web/bund..., this is the path for local development. Among them, msk is a project folder in the root directory. There is no problem at this time. Everything in rich text can be uploaded. But when I uploaded it to the server online, the path I got was like this: http://host ip/bundles/msk/public/js/php/controller.php?action=config&&noCache=1471224486130, but at this time A 404 error was generated. I would like to ask, is the developer mode of symfony different from the normal mode? Is it necessary to read the route registration method? Also, in order to test whether the path is correct, I put a picture up, but it can also be read. Is it just that the php file cannot be read? Thank you for your generous advice.
What is the server you use? It is most likely nginx
or apache
. All the files ending with .php
are forwarded to the entry file app.php
,