Report this

What is the reason for this report?

I have issue with React App on digital ocean server on local routing normal works on app on server also but when I share link open 404 error

Posted on February 20, 2022

I have issue 404 when i send some link to other users. IN my case it’s approve profile page. I send it with link but my link and app doesn’t recognise my link and show me 404. Here is my site: https://dorfleben-ve8vp.ondigitalocean.app/ and it opens ok. But as I provide link to dashboard https://dorfleben-ve8vp.ondigitalocean.app/startseite like this I get 404 page. Why and how to fix that?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @abuduklis,

I see you’ve managed to resolve the issue on your App. Can you please share what was the issue and how did you fix it in case other people find this topic?

The solution for me was to go to open the app component and go to the Custom Pages setting, and add switch the error page to be Catchall at “index.html”

See the “Configure a Static Site” here… https://docs.digitalocean.com/products/app-platform/how-to/manage-static-sites/

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.