in basic i have a table category like
|id|name |
|1 |home |
|2 |tutorial|
...
and table posts like
|id|name |cateID|
...
|5 |getting started|2
...
1. if i view(click) tutorial
in category, then url will be like
`index.php/nameOfControllerFile/functionName/2`
2
is id of table category .
But i see all of website i view. it look like
category/tutorials.htm or like category/tutorials/
2. and if i view getting started
Post, then url will be like
index.php/nameOfControllerFile/functionName/5
5
is id of table posts.
But i see all of website i view. it look like
category/tutorials/getting-started.htm
Here is website like struction http://line25.com/category/tutorials
How can i change basic url to url like above ?
Edit
What is heppend if has two posts is the same title like
|id|name |cateID|
...
|5 |getting started|2
|8 |getting started|2
...