For no apparent reasons, wordpress is returning 404 error on pages that were working fine. Affected pages are product category archive pages. They are a mixture of custom and default pages.
The directory structures that are affected
example/product-category/ example/product-category/some-sub-category-name
Steps already taken
- Checked plugins compatibility even though no new plugins were installed prior to that
- Checked mod_rewrite rules on .htaccess
- Reset permalinks settings to default and back to custom
- Cleared cache
- Renamed the categories
- Delete and reworked on the affected pages
How can I fix it?