WordPress.org

Support

Support » How-To and Troubleshooting » External Links to deleted posts – how to direct them elsewhere?

External Links to deleted posts – how to direct them elsewhere?

  • 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.

  • The topic ‘External Links to deleted posts – how to direct them elsewhere?’ is closed to new replies.