php - Codeigniter URL redirection and routing - Stack Overflow
If the URL comes with /api/some/some I want to redirect it to api/some/some, otherwise I want to redirect the URL to /home/index. i.e if any URL starts with api/ i don't want to change that URL other wise i want to redirect it to default controller home/index. What i tried is mapping the codeigniter URL routing.