statiqdev / Statiq.Web

Statiq Web is a flexible static site generator written in .NET.
https://statiq.dev/web
Other
1.65k stars 235 forks source link

Allow user configuration for 404 handling #850

Open borrillis opened 5 years ago

borrillis commented 5 years ago

Currently the VirtualDirectoryMiddleware simply returns a 404 Status code to the browser if the page is not found in the VirtualDirectory. Adding support for a page to return in the event of a 404 would allow the preview server to mimic the behavior of hosting sites which support such configurations.