I am working on an existing project but here is problem. In router.php
there are 200+ redirections and I want to know which redirection is working right now on a specific page - is there any way to know that? Thanks in advance.
I don't think there is any native way in Codeigniter to spit it out, like with knowing which database is being used for example:
echo $this->db->database;
But if you were to check your URL and note the first URI segment, which you could also get by echoing this:
echo $this->uri->segment(1);
That at least gives you which bit to look for in the routes.php file.
I haven't seen one with 200+ routes though so not sure what kind of mess you may be reviewing.