rewrite file to wordpress
WordPress rewrite mechanism works in a different way, not like .htaccess rewrite rules. More information about it you can find in codex (Rewrite API, WP_Rewrite, etc.). But fast work around could be the following: First of all we need to register our query var and rewrite rule: function myplugin_add_query_var( $vars ) { $vars[] = ‘myplugin_api’; … Read more