How to redirect every uri calls to one controller, except some static ones?
- by Oden
Hey,
Im using codeigniter and want to make my portal a bit more seo friendly.
I have a controller (articles) witch handles every article, on my portal.
The URL looks like this:
example.com/articles/category-sub-category/article-name
I'm using mod rewrite module to hide my index.php, and codeigniter routing to hide the controller action that handles every call.
I want to hide articles too, but if i hide it, every call goes to the articles controller, and thats not what i want, because i want my url look like this:
example.com/category-sub-category/article-name
Ive tried it with regexp routing rules in the routes.php but i found no way to make it right.