Fixed rewriting nginx for cake