Possible Duplicate:
using seo user friendly in php
Custom routing in code ingniter
I’m deving a CMS and I wanna use User-friendly URLs instead of Query Strings.
e.g.:
mysite.com/cat_1 => mysite.com/cat_1/itme_1
instead of
mysite.com/?cat=1 => mysite.com/?item=1
How should I implement this? any standard way?
My idea is to use of semi-dynamic pages and generating static snapshots with user-friendly URLS of dynamic pages that use query strings.
This is accomplished through the use of .htaccess to modify how the URL is sent to the client. Or as other people say, to prettify the URL. Here are some links to articles to help you get started with the
mod_rewriterules required to make this function.http://net.tutsplus.com/tutorials/other/using-htaccess-files-for-pretty-urls/
http://www.roscripts.com/Pretty_URLs_-_a_guide_to_URL_rewriting-168.html