Deploying single page applications

I recently deployed my single page react application. Everything was looking fine until I tried refreshing the about page and received the Page not found error. When moving to different pages from the “/” i.e home page it works but refreshing any other page apart from the home page gives the error. Here’s the link.

A screenshot of the error is attached

hey there,

this might help:

or this:

If you are still seeing issues after following the troubleshooting steps in this guide, please let us know!

Thank you for the reply. I added a _redirects text file to the build folder and redeployed and I’m still having the same issue. The deploy summary also shows no errors.

hm, yes, it doesn’t show any errors but also isn’t showing that your redirects are being processed either :thinking:

could you post the content of your redirects file please?

Just to be certain I named the file “_redirects.txt”

AH! it can’t be a txt file. Just _redirects - no file extension. Try that.

Oh my!. You’re a life saver! Muchas gracias amigo.:clap:t6:.
It’s working perfectly and the deploy summary shows 1 redirect rule processed. Thank you again.

yeah! go team! woooo. you’re welcome! enjoy your new site :+1:

1 Like