Page Not Found when refreshing a page that is not the landing-page

Hi!
I’ve recently deployed a website on netflify. My issue is that I get an error when refreshing the side when I’m NOT on the landing page (eg domain.com/another-page).


The error message is :
“Page Not Found
Looks like you’ve followed a broken link or entered a URL that doesn’t exist on this site.”
The link takes you back to the landing page were you obviously can refresh the site.

I do not have this problem when I run the site locally on my computer.
Do you have any idea where I can start looking after this issue?

It’s a Vue application and I have set my publish directory to dist and my build command is npm run build.

Kind regards,
Eric

hmm, that’s annoying!

Did you see this article? It might be relevant.

if not, please let us know.

2 Likes

Thank you so much!
This solved my problem.

1 Like

awesome. glad it’s working now!

thanks, totally solves the problem

2 Likes

I’m not doing the deployment from git, I do it by dragging it into the dist folder. I have to put _redirects file inside dist, right? Because that’s what I did and it’s still the same.

Hi, @alcidesrope. I see that rule working correctly for your site now. Did you make another change?

Hello. Yes, it is working, I had to put the file in plain format. The solution with the redirect works perfectly, thanks.

1 Like