# Everything but my home page crashes on refresh

**URL:** <https://answers.netlify.com/t/everything-but-my-home-page-crashes-on-refresh/56571>\
**Category:** Support\
**Tags:** redirects, building, deployment\
**Created:** [May 17, 2022, 7:41pm UTC](https://answers.netlify.com/t/everything-but-my-home-page-crashes-on-refresh/56571 "2022-05-17T19:41:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![delfimassa](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@delfimassa](https://answers.netlify.com/u/delfimassa)\
**Post date:** [May 17, 2022, 7:41pm UTC](https://answers.netlify.com/t/everything-but-my-home-page-crashes-on-refresh/56571/1 "2022-05-17T19:41:26Z")

</div>

Hi there! I’ve been getting this error: “Page Not Found  
Looks like you’ve followed a broken link or entered a URL that doesn’t exist on this site.”  
whenever I refresh anything that’s not my deployed web’s base URL " / ". I guess it must be something about the routing but I could not find out exactly what ☹

Here’s the website address:

> **[Exelsus](https://exelsus.netlify.app/)**
>
> Oncología clínica

And this is my App.js file

 ![appjs-exelsus](https://global.discourse-cdn.com/netlify/original/3X/0/8/0819572f10ca3a568c53ed86e60d693a0c920115.jpeg)

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [May 17, 2022, 8:30pm UTC](https://answers.netlify.com/t/everything-but-my-home-page-crashes-on-refresh/56571/2 "2022-05-17T20:30:17Z")

</div>

hi there, did you see this guide already?

it might be applicable to your use case:

> [@\[Support Guide\] Direct links to my single page app (SPA) don't work](https://answers.netlify.com/t/support-guide-direct-links-to-my-single-page-app-spa-dont-work/126):
>
> Last reviewed by Netlify Support - August, 2023 If you’re building a Single Page Application (SPA), or an app that manages its own routes (url paths), you’ll want to add a \_redirects file to your [publish directory](https://docs.netlify.com/configure-builds/overview/#definitions-1) with the following line to take advantage of browser history pushstate: /\* /index.html 200 You can read more information in our docs, which can be found [here](https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps).

---

<div class="post-metadata">

**Author:** ![delfimassa](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@delfimassa](https://answers.netlify.com/u/delfimassa)\
**Post date:** [May 20, 2022, 7:04pm UTC](https://answers.netlify.com/t/everything-but-my-home-page-crashes-on-refresh/56571/3 "2022-05-20T19:04:09Z")

</div>

Hi Perry, thanks for your quick response  
This and :

RewriteEngine On  
RewriteBase /  
RewriteRule ^index.html$ - [L]  
RewriteCond %{REQUEST\_FILENAME} !-f  
RewriteCond %{REQUEST\_FILENAME} !-d  
RewriteCond %{REQUEST\_FILENAME} !-l  
RewriteRule . /index.html [L]

in my .htaccess file did the trick! Thank you!
