www.website.com works but website.com redirects to website.com/index.html

Probably you have a redirect settings in your .htaccess file
This is a hidden file, You can use your file manager to edit this file and check for any redirect settings in this file

If your web hosting panel is CPanel, you may find that in Redirect section in CPanel too

Or may be it’s a browser cache, So clear your browser cache and then try again
To check browser cache, You can use this trick: www.sitename.com/?
Use a question mark after a slash sign in the end of address