I am currently working on a blog where I would like to create links to my individual articles in the following form:
http://www.mysite.com/health/2013/08/25/some-random-title ------ ----------------- | | category title
However I have no idea how to achieve this.
I have found something that would give me the URI.
$uri = $_SERVER["REQUEST_URI"];
I would then go ahead and extract the needed parts and make requests against the database. This may seem a very very dumb question, but I do not know how to look this up on google (I tried...) but how exactly am I going to handle the link ?
I try to explain it step-by-step:
User clicks on article title -> the page reloads with new uri --> Where am I supposed to handle this new uri and how ? If the request path looked like this:
I would do it in the index.php and read the $_GET array and process it accordingly. But how do I do it with the proposed structure at the beginning of this question ?