DEV Community

Discussion on: When Netlify gives you that 404 page

Collapse
 
aviramontesn profile image
AViramontesN

Hi! Is there a way to fix this with just Vue? I'm not using either Nuxt or Netlify, just plain Vue.js. Would I have to add some kind of fix on the router files? Thank you.

Collapse
 
debs_obrien profile image
Debbie O'Brien

hey sorry not too sure. haven't tried it but am sure it will work somehow. maybe just creating the 404 file.

Collapse
 
archyscript profile image
Daniel Dasaolu

Yes

=> In your public folder
=> create a new file and name it "_redirects"
=> Paste this inside without the quote

"/* /index.html 200"

=> Save your file and push to github
=> It should work this way