I have a plugin that sets up a custom rewrite rule. I can access the short URL and the content is returned correctly, but the HTTP response is 404, Page not found.
From searching the web it seems like WordPress is returning 404, because it thinks this is not a valid WP page (http://wordpress.org/support/topic/404-on-custom-non-wordpress-pages).
Is there a recommended solution to this problem? How can I get WP to return a normal status code for a rewritten URL?
global $wp_rewrite;
add_rewrite_rule('list-data$',
'/wp-content/plugins/data-lister/list-data.php', 'top');
Thanks! Mark