First off, sorry for my bad English
One of my clients needs something special but I have no clue on how to do it.
I have a problem with wordpress redirect function, or in other words, I don't know how to implement such functionality .
Senario: several posts have links to external resources. On page load I want to parse for links, rewrite the link target to post title and finally 301 redirect to its destination page.
post title: the post
post content contains: <a href="http://external.com/page1.htm">a link</a>
after parsing the post: <a href="/redirects/the_post"> a link</a>
and finally I need a redirect from /redirects/the_post to http:external.com/page1.htm
Because I have no experience with the wp_redirect function and I don't know if I need my own DB tables to solve the problem, I would really appreciate any kind of help.