خرید بک لینک

Vote count: 0

today all my symfony projects get broken for a very strange 'bug'.

My routing.yml file was:

luckyseven_admin_bundle:
    resource: "@LuckySevenAdminBundle/Resources/config/routing.yml"
    prefix:   /admin/

And my AdminBundle routing.yml file was:

admin_homepage:
    path:   /
    defaults:  { _controller: LuckySevenAdminBundle:Home:index }

...more...

Until today, all was working well. When i went to mysite.com/admin all works well. Since today, EVERY SYMFONY PROJECT that i have was corrupted and the URL retus a TOO MANY REDIRECT error (loop of redirects to the same page /admin).

Trying to debug with app_dev.php i found that in DEV environment it works well, while in PROD gives TOO MANY REDIRECTS, so i can't debug this problem.

I have this problem only with 'root pages with prefix'. In the example you can see a 'root' page (admin_homepage) that has a prefix /admin/. Pages like this will retu the error.

Other pages (not root, like '/example') will work.

I can't understand why it works until today and why i have this problem only with 'root' paths (and only in PROD mode). Can you help me to understand?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 24 خرداد 1395 ساعت: 7:15

صفحه بندی