No POST data received Symfony

这一生的挚爱 提交于 2019-12-05 10:23:32

I came across this issue some time ago. But my problem was redirection(rewrite). The form was being submitted to right URL but the rewrite was redirecting it to another location, and redirection dont carry along post data.

In chrome developer console, if you check Preserve log, then you will be able to see it.

I think in your case this is causing problems

RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /web/
RewriteRule ^(.*)$ /$1 [L,R=301]

Best thing to setup Symfony2, I would say is , set your DocumentRoot to the web directory, than doing it through .htaccess

a coder

Try print_r($_GET) in PHP on the page you're working on.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!