Luka Modric scored his first AC Milan goal on his 40th birthday in a 1-0 win over Bologna at San Siro, while Massimiliano Allegri was sent off and Mike Maignan suffered an injury.