External Links to deleted posts - how to direct them elsewhere? (1 post)

  1. mistergin
    Posted 9 years ago #

    I have a few outside links that link to posts I've deleted and moved to another blog.

    What I'd like to do is find which file does the SQL lookup for that post and if there is no recordcount, display some text or use a redirect to throw them to the main page as opposed to just seeing a white screen.

    The blog is on IIS so I'm using the 404 handler, although that shouldn't change anything other than not giving me the ability to use mod_rewrite or .htaccess for a solution.

    Anyone know specifically which file or operation does the SQL lookup for the post? Using permalinks it's harder to narrow it down although I did a search for "$wpdb->posts" but there are so many pages that reference the posts table that I haven't been able to find the exact place.

Topic Closed

This topic has been closed to new replies.

About this Topic