I am trying to host a site with muliple paths on a S3 Bucket. Is this an available option ?
These two work on my local machine.
localhost:3000
localhost:3000/policy
Trying to host this on S3 is giving me no key error
example.com <-- Works
example.com/policy <-- does not work with no key error
Exact Error
404 Not Found Code: NoSuchKey
Message: The specified key does not exist.
Key: policy
I should mention
I am using React-Router-Dom switch on the App that is working on localhost
<Switch>
<Route path="/policy"><PolicyComponent><Route>
<Route path="/"><HomePageComponent><Route>
<Switch>