My problem is that I have a serverless netlify page build with next-on-netlify. I’ve added redirection to my custom 404 page, and that works fine. The problem occurs when accessing the page from a link or when refreshing the page. In these cases it gives me the 404 page instead of the actual content on given url.
I’ve already tried to add:
Move _redirects file to public and add /* index.html 200 (This didn’t add the redirects at all in build file)
Move _redirects file to root and add /* index.html 200
add /* index.html 200 infront of my 404 redirect in root (It displayed the default 404 page on all pages).