Hello everyone. Help me figure out the problem. Can’t redirect all non-existent pages(error page) to homepage. Adding to Nginx config does not help. I’ve tried everything. As far as I understand, you can do a manual redirect in the site.yaml config but how?
Can I ask why you want to do this? 404 pages have a very clear and useful purpose. It might seem helpful to users, but simply redirecting them will have all kinds of unintended effects.
My site doesn’t need a 404 page. I need a simple 301 redirect of any 404 page to the main page. This is a common practice that I implemented via nginx config or htaccess. But in this cms I encountered a problem that I cannot solve.
AFAIK this is far from common practice Also you will have issues with SEO if any invalid link redirects to a home page - I believe crawlers would mark all such pages as duplicates