- Check if the variable create404page in the config.json file is set to true.
- Create a .htaccess file with the following content: ErrorDocument 404 /404.html
- Upload the .htaccess file in the Publii File manager (Tools → File Manager).
- Sync the website with the web server.
Using a sub directory on your server? Add the sub directory to the path (example: /sub-directory/404.html).