Add Rewrite Rule to point to a file on the server
(Revised answer) Don’t call flush_rewrite_rules() on init. Instead, if you want to do it programmatically, call the function from your plugin or theme activation function. If you’re not doing it programmatically, you could simply visit the Permalink Settings page (Settings → Permalinks on the WordPress back-end). WordPress does support adding a rewrite rule that doesn’t … Read more