Only default permalinks working wordpress others become 404 error

My problem is in my WordPress site only default permalinks are working. When I change permalinks all pages become not found (404). The home page and the shop page is the only working with post name.

Before this problem, I have one more question. that was my site was hacked or may be due to plugin it has some unnecessary files which redirect to some dating site. But I have checked them and delete using WordFence WordPress plugin. The site is clean now!

This is my .htaccess file

What I did so far?

*Which plugin I have used?

Really Simple SSL

Wordfence Security (pro)

Other plugin related to the theme such as slider revolution, WooCommerce, Contact Form 7 etc. I think they are not that critical to this problem.