I am getting a 404 error on subsites.

I am getting a 404 error on pages and subsites. The main page is working.