Exporting websites adds .html to the url

I am not really familiar with those terms,
Hosting is not really my strongest,

is .htaccess the only way to solve this problem? or are there more?
what are my options here.

kind regards