Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Is there a way to prevent Publii from overwriting the 404.html file?

#1592
Avatar photo[anonymous]

A possible solution could be:

  • customize your 404 file (provided by Publii) and rename it like:   404-page.html  or something like this.
  • declare your default error page via htaccess:

ErrorDocument 404 /404-page.html

it should work