0
如果方案是https,我想提供一個頁面,如果不是,則拋出404。這在Symfony路由中可能嗎?我可以在Symfony2中使用特定的路線嗎?
HTTP://mysite.com/api/members < - 應該拋出404
和
HTTP 小號://mysite.com/api/members < - 應該工作
我使用的以下路由是對http進行自動重定向,而不是404:
acme_two_index:
path: /api/members
defaults: { _controller: AcmeTestBundle:Default:members }
schemes: [https]
methods: [GET]
第一個選項不起作用,它看起來第二個是目前唯一的工作。我會看看我是否可以打開功能請求。謝謝 – Jimbotron 2014-10-09 13:58:58