rewrite cond for codeigniter