Still not following - are you asking how to transform the
string "/forum/1234 " into "/forum/1234/title_of_topic"? If so, you have the ID of the post , so you can look up the subject, and then append it to the string before you do the redirect. And, of course, wherever the URL is used in your web pages, you'd append the subject to begin with.