I have googled a lot, read a lot but still cannot figure out the basic concept behind pretty url and mod_rewrite.
I am currently making pretty url the php way. Like this
a) creating a field in a table with the name same as the text (or the title which i want in the url) separated with (-).
b) making hyperlink with the same field value like (a href="my-page-name")
c) and when passed through querystring checking the value from the database and if it matches, get the id for that row and do other stuffs...
So far it is working.. but I am confused.
IS THIS THE RIGHT WAY ? OR it can be controlled through .htaccess, since I am doing the same thing in all the pages which needs pretty URL.
Someone guide me please..
Thanks for reading ;)