I am just curious how one would go about this..
Let's say I have a mysql table called articles and 3 columns: postid, title, content
...and I wanted to format my url to look like mysite.com/this-is-my-title
I understand that the normal approach is to query for postid and include that in the url.. and probably use a rewrite rule in htaccess, but is it possible to simply query the database for the title only and append to the url after .com/ ?
I understand that in such a case, every title would have to be unique, but still curious about the approach. Since the url would have to be sanitized and dashes added, can you still make a request by title?
Thanks!