api.php is now location-independent too