Netlify doesn't display all website pages

Viewed 491

I am using Netlify to deploy a website. It was built with ReactJS and locally everything works. After deploying it on Netlify only the landing page works.

The website is a simple static website for hosting my portfolio.

The main website is www.myname.com while projects are located on www.myname.com/project-name-case-study

Anything under www.myname.com/project-name-case-study leads to a "Page Not Found" screen. I'm just not sure where to even start here. I'm new to website deployment

2 Answers

Just figured it out. The issue was specifically related to React-Router. This freeCodeCamp article shows how to easily fix it.

As this article mentioned: "Create a new file with the name _redirects inside the public folder of our project and add the following contents inside it:"

/* /index.html 200
Related