[eluser]Jason van der Zeeuw[/eluser]
Hi everyone,
I have some questions about htaccess in codeigniter.
I want to be able to do the following things:
/category
/category/subcategory
/category/subcategory/subsubcategory
(these categories are stored in my database)
/infopage (a page which doesn't need functions, just text)
/controller/function/id (the standard one)
so if someone goes to mysite.com/hello
I want to check if it is a category,
if it's not a category I want to check if it is an info page,
else it must be a controller, or the 404 page will show up.
But i don't know how the info pages work, do i have to make a new controller for each page?
i.e. I want mysite.com/aboutus
do i need to make a controller "aboutus.php" with an index function, or are there better ways to accomplish this?
I hope that you guys can help me out with this one, because I have no idea where to start.
Thanks!