[v4] Strapi routes Fail with 404 error after uploading to cpanel

System Information
  • Strapi Version: v4.1.11
  • Operating System: Cloud linux
  • Database:
  • Node Version: v16
  • NPM Version: v8.5.5

After uploading v4 of strapi onto my cpanel server, there are some strapi apis that return a 404 error. I am unable to set permissions for roles or add entries for some of my collections/single types. The error I get when I try to set permissions for a certain role is the following:
Screenshot 2022-05-21 at 15.55.16
And when I try to add entries on one of my single types i get the following error:
Screenshot 2022-05-21 at 15.52.51
I tried replicating this locally and I could not. it works as expected locally on my machine but when I upload it to the server, i get the above issues.
I have created a temporary admin to allow you to see this error for yourselves.

Steps to reproduce the behavior

  1. Go to api.mtsd.co.za/admin
  2. Log in using the credentials: test@gmail.com Passw0rd
  3. Click on Settings and got the the roles option under the users and permissions plugin
  4. Click on the public role and set some permissions for some of the collections available
  5. See error

It would appear I had configured the domain for this incorrectly. For example the content manager should be at /admin/content-manager/collectionType/api::faq.faq not /content-manager/collectionType/api::faq.faq