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

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

What I did so far?

  • Change permalinks type and save twist. (nothing work even in a private window)
  • Change rewrite mode in the database file (clear that field empty and change permalink type. not work)

*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.

, , Sahan Pasindu Nirmal 3 years 2020-03-31T08:50:58-05:00 0 Answers 83 views 0

Leave an answer