1: Get the category it's posted in :: General
2: Get the ID of the post :: 2015
3: Get the title of the thread :: htaccess securing url
Everything is dynamically fetched from the database and rewritten by the .htaccess. Guessing this is what you want to do, you can search the web for some awesome RegEx for .htaccess or create your own.