Guides › HTML / PHP sites › Site down or error screens

Express.js App: Cannot GET / on Hosting

Routes.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Site down or error page

Cannot GET / from an Express app means the server runs but has no route matching the path. On hosting it is often a wrong base path, a missing route or a static folder problem.

1Check the route2Check the static path3Check the base path4Check the port5Check the start file6Read the logs7Restart the appFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Check the route

Illustration for Step 1: Check the route

Make sure the app defines app.get('/', ...) or serves static files with express.static.

Step 2: Check the static path

Illustration for Step 2: Check the static path

Use path.join(__dirname, 'public') so the folder resolves on the server.

Step 3: Check the base path

Illustration for Step 3: Check the base path

If the app is in a subfolder, routes must include that prefix, or the proxy must strip it.

Step 4: Check the port

Illustration for Step 4: Check the port

Listen on process.env.PORT, as the host sets the port.

Step 5: Check the start file

Illustration for Step 5: Check the start file

Make sure the host runs the correct entry file such as app.js.

Step 6: Read the logs

Illustration for Step 6: Read the logs

Look at the application log for errors on start.

Step 7: Restart the app

Illustration for Step 7: Restart the app

Restart after changes.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.