E
E
Evgeny Kramor2021-07-18 21:49:17
htaccess
Evgeny Kramor, 2021-07-18 21:49:17

How to solve the problem with displaying the 404 page on hosting?

The site works great, but when you go to the wrong link, it redirects to "page not found" from the host itself, but it should be my stub.

Tell me, what nuances were missed and what could be the problem? (it may be necessary to write something in .htaccess)

nuxt.config.js

target: 'static',

  ssr: true,
  generate: { fallback: '404.html', fallback: true },


On local hosting, everything works without problems, but if you deploy it already on a virtual one, then there is a problem.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question