I was going to suggest that it might be a permalink setting that has messed up. Sometimes plugins can mess up the settings and they need to be reset. However, if you can’t even access your wp-admin then I don’t have the knowledge on changing those without being in the dashboard.
Hopefully someone can help you sort this out!