I've hosted my React app on AWS S3, and I'm having trouble with deep paths routing.
domain.com/one : success
domain.com/one/two : fail
My routes (partial):
<Suspense fallback={<p>LOADING...</p>}>
<Switch>
<Route exact path="/">
<Redirect to="/clinic"/>
</Route>
<Route exact path="/login" component={Login}/>
<Route exact path="/404" component={PageNotFound}/>
<Route exact path="/clinic/patients" component={ClinicPatients}/>
<Route exact path="/clinic/help" component={HelpCenter}/>
<Route exact path="/clinic" component={ClinicDashboard} />
<Redirect to="/404"/>
</Switch>
</Suspense>
Routing results:
https://my-website-name.s3-website-eu-west-1.amazonaws.com/ - OK. redirected to /clinic
https://my-website-name.s3-website-eu-west-1.amazonaws.com/clinic - OK. opens page /clinic
https://my-website-name.s3-website-eu-west-1.amazonaws.com/clinic/ - PROBLEM. 404 not found. blank page, no redirection. (Only difference is the '/' at the end)
https://my-website-name.s3-website-eu-west-1.amazonaws.com/route-that-doesnt-exist - OK. redirected to /404
https://my-website-name.s3-website-eu-west-1.amazonaws.com/clinic/patients - PROBLEM. 404 page not found (although it exists). blank page, no redirection.
https://my-website-name.s3-website-eu-west-1.amazonaws.com/one/two - PROBLEM. 404 page not found (doesn't exist). blank page, no redirection.
My static web hosting preferences:

As you can see, deep path will not work for some reason. Would appreciate any help.
Thanks!
