Answer the question
In order to leave comments, you need to log in
CodeIgniter - how to properly route?
Hello!
My problem is this: I have 2 controllers main && posts , and I need to be able to access the standard controller (without specifying the controller itself) site.ru/methodname , and the rest of the controllers - specifying them in the URL site.ru/ controller/methodname
Answer the question
In order to leave comments, you need to log in
Write down a rule for each case.
If you need it for pages, then I advise you to register
A for everything else, it will work as it worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question