php – Url Not working – Category Pages not Loading

I ran the following commands to enable a module on magento 2.4.1:
bin/magento module:enable testapp
bin/magento setup:upgrade
The command executed successfully, but this caused the images on my website [CSS] to stop displaying and. The navigation tab on my Admin panel also stopped working.
I then ran the following command: – php bin/magento setup:static-content:deploy -f and the issue was fixed [The front page css is now showing properly].

However, the other category pages on the navigation tab of the website are not loading. seems like the URL’s are broken. it gives an error: – This page isn’t working

Can any one help with this please?