Skip to content

How to stop index.js from overriding all other pages? #4452

Closed
@evandrocoan

Description

@evandrocoan

I ran it on 2 web servers, the first one is the standard used on the basic instructions:

npx create-react-app my-app
cd my-app
npm start
  1. First server:
    image

The second one, which also have the same behavior is Apache Tomcat 9. I put the ReactJS app there with:

npx create-react-app my-app
cd my-app
yarn build
mv build/* ../WebContent/app/
  1. Second server:
    image

How can it show the index.js page, even I type some other non-existing address as http://localhost:3000/asdfasdf%20/*asd/fasd?

Can it just show 404 not found?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions