▶️How to make a custom 404 page
Create a custom 404 error page in Webstudio.
When you visit a URL that doesn't exist or couldn't be found on the server because the webpage was moved or deleted, the broken link redirects to a 404 error page where a message indicating this error is shown.
The default 404 page displays:
404 Not Found
Creating a Custom 404 Page
If you want to create a customized page for this, you will need to create a new page and change two things:
Change the Status Code from
200to404Set the Dynamic Path to
/*to catch all non-existent routes

/*After that, you can design the page however you like.
Redirecting to Homepage Instead
If you do not want to show a 404 page error but always redirect to the homepage, you can set the redirect to /.
Related
Project settings – Configure redirects, custom code, and other project-level settings
CMS – Create dynamic pages that won't trigger 404 errors
Variables – Use system variables to customize page behavior
Last updated
Was this helpful?
