[eluser]costicanu[/eluser]
Codeigniter creates url like this: domain_name/controller_name/action_name.
My default controller name is
pages. In this pages controller I have an action named
page. I want the url to come from the database.
An example: /first-page.html should take the info from /pages/page/$1
I did something with routes:
I used: $route['^(:any)$'] = "pages/page/$1";
But now, everything i'm writting after domain name, for example,
domain_name/administration_area/ goes to /pages/page, not to admin area. It's normal, but, all I want is: if the URI is
domain_name/page-name-from-database.html take info from
/pages/page/page-name-from-database.html
I don't want this to affect all my controllers, should go to
pages controller and
page action only when URI like this: /page-name-from-database.html