Debug mode off issue on application login on server


I’m working on cake php2.7 version , when we deployed the application on server and make debug mode off then we are not able to login but if debug mode is off [2] then we can properly login.
It seems like the routing is not working if debug mode off.