Hi Maciej,
Thank you for your help, but I do not have the ‘resources’ post type. Those were the taxonomies. Now, I have removed this taxonomy and the rewrite code, deactivated the ‘Permalink Manager Lite’ plugin and flushed the permalink. Despite these actions, the pages are still showing a 404 error.