hello people,
me needing some help here.i have built my own custom coded CMS for blogging.i could have used the same old wordpress ,themes,but the intention was to learn the php,sql system. the platform has been developed and its working as it should.but i`m unable to modify the url structure

current structure =
Code: 
site.com/view.php?id=3
Using htaccess and much researching, i modified it to
Code: 
sitecom/view/3.html
this one variable(so as to speak - id) is working well.now i wanna include some seo optimized keywords in the URL.As soon the post is created in the admin panel,the seo optimized key words will be added to that field in the table,say "SLUG".
i can make the url
Code: 
site.com/view.php?id=3&slug=seo-optimized
but i read its not friendly with server as it has to load both the fields to make a match.

now my question is ,is it possible to
make the url patter
Code: 
site.com/view.php?id=3
and modify it via htaccess to

Code: 
sitecom/view/3.html
so i want to know how it can be modified to

Code: 
sitecom/view/3/article-name-from-slug-field.html
Regards


EDIT1:I have gone through the system of wordpress ,but there are so many functions,its complicating the thing even more
sceneguy Reviewed by sceneguy on . Php,MYSQL and htaccess hello people, me needing some help here.i have built my own custom coded CMS for blogging.i could have used the same old wordpress ,themes,but the intention was to learn the php,sql system. the platform has been developed and its working as it should.but i`m unable to modify the url structure current structure = site.com/view.php?id=3Using htaccess and much researching, i modified it to sitecom/view/3.htmlthis one variable(so as to speak - id) is working well.now i wanna include some seo Rating: 5