• GoDaddy Community
  • Websites + Marketing | Website Builders
  • Websites + Marketing | Website Builders

    cancel
    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 
    Go to solution

    React js 404 error, using react router

    I've built a simple portfolio app using React, and React router, which is hosted on GoDaddy. I was able to upload everything just fine. And when I click on the links, everything works loads fine. However, when I try to refresh every page, except for the Index page I get a " File not found (404 error)". 

     

    Does anyone know how to fix this?

    2 REPLIES 2
    Community Manager
    Community Manager
    Solution

    Re: React js 404 error, using react router

    Hi @Dylancougar. Thanks for being part of GoDaddy Community! I'm not sure it will help, but I did find this post on Stack Overflow that might be helpful. Hope you're able to get this figured out. 

     

    JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.
    Solution

    Re: React js 404 error, using react router

    I was able to find a solution to it by creating a .htacces file, to redirect all requests to index.html.