Changed index.php to api.php and added htaccess file