MY website is in wordpress.
I have file api.php that is placed in same folder as index.html
But when i do mysite.com/api.php it redirects to wordpress page that no page is found.
Is there a way to access custom php file (e.g api.php) through url ?
mysite.com/anyContentUrlthroughindex.html. But if you want to access to a custom file, you have to precise the full URL, for example for your thememysite.com/wp-content/themes/yourTheme/file.php. If you don't want this path to be shown, place it in another folder in your site root for example (and still access it with its full URL)