whole website redirected to another page

As mentioned in the comments, your site is probably hacked. I’d suspect the htaccess file first, and then maybe hacked index.php files.

Cleaning up a site is difficult and time-consuming, but can be done. Replace all WP core files, manually delete and reload (via FTP) plugins and themes, look for any unusual files (since you uploaded new files, check files for different date stamps).

Change the password on all accounts (hosting, FTP, database, admin-level account); strong passwords throughout. Look for extra ‘admin’ level user; demote them at the very least. All user accounts (especially admin-levels) should have passwords changed.

Manually inspect suspect files with hosting file manager. Look for ‘funny’ code. Check the posts database for unusual entries.

Then repeat inspections of files. Your SEO (search results) may take a couple of weeks to get back to normal, although you might be able to fast-track that by submitting new sitemaps. (Make sure your sitemaps files are valid.)

Monitor the site carefully for all of the above. Cleanup is hard, takes a long time, but can be done – I’ve done it for clients.

tech