You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To configure React app on Netlify I used /* /index.html 200 to redirect to index.html on page reloading for the react router to work.
The S3 Route Builder converted it to
<RoutingRule>
<Condition>
<KeyPrefixEquals>/*</KeyPrefixEquals>
</Condition>
<Redirect>
<ReplaceKeyWith>/index.html</ReplaceKeyWith>
<HttpRedirectCode>200</HttpRedirectCode>
</Redirect>
</RoutingRule>
</RoutingRules>```
But it's not accepting `200`.
What can be done here?
The text was updated successfully, but these errors were encountered:
I'm sorry but i don't quite understand. is the generated xml correct and accepted by S3? The generated xml looks correct to me. is it not working?
If it's not correct then this is a bug. I checked aws site and couldn't find an issue with the current xml. Can you double check for me and let me know?
@AlahmadiQ8 The generated XML is correct. But the problem is HttpRedirectCode does not take 200 in S3 Redirect Rules. So, if I use /* /index.html 200 that I used on Netlify which is working fine in Netlify, it generates to <HttpRedirectCode>200</HttpRedirectCode> which is incorrect according to S3 routing.
To configure React app on Netlify I used
/* /index.html 200
to redirect to index.html on page reloading for the react router to work.The S3 Route Builder converted it to
The text was updated successfully, but these errors were encountered: