WordPress repository forbids me call wp-load.php in non-WordPress file

To send HTTP headers just do it early enough. On the action wp_loaded for example. Don’t forget to call exit; when you are done, so WordPress doesn’t send its own headers later.

See also How to Rewrite WordPress URL for a Plugin

File not found.