mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Docs: Custom 404 pages are pages -- not articles
This commit is contained in:
parent
d6ac93a470
commit
ac08cd5eb1
1 changed files with 4 additions and 4 deletions
|
|
@ -9,8 +9,8 @@ Custom 404 Pages
|
||||||
When a browser requests a resource that the web server cannot find, the web
|
When a browser requests a resource that the web server cannot find, the web
|
||||||
server usually displays a generic "File not found" (404) error page that can be
|
server usually displays a generic "File not found" (404) error page that can be
|
||||||
stark and unsightly. One way to provide an error page that matches the theme
|
stark and unsightly. One way to provide an error page that matches the theme
|
||||||
of your site is to create a custom 404 page, such as this Markdown-formatted
|
of your site is to create a custom 404 page (*not* an article), such as this
|
||||||
example::
|
Markdown-formatted example stored in ``content/pages/404.md``::
|
||||||
|
|
||||||
Title: Not Found
|
Title: Not Found
|
||||||
Status: hidden
|
Status: hidden
|
||||||
|
|
@ -28,8 +28,8 @@ configuration file's ``location`` block::
|
||||||
For Apache::
|
For Apache::
|
||||||
|
|
||||||
ErrorDocument 404 /404.html
|
ErrorDocument 404 /404.html
|
||||||
|
|
||||||
For Amazon S3, first navigate to the ``Static Site Hosting`` menu in the
|
For Amazon S3, first navigate to the ``Static Site Hosting`` menu in the
|
||||||
bucket settings on your AWS cosole. From there::
|
bucket settings on your AWS cosole. From there::
|
||||||
|
|
||||||
Error Document: 404.html
|
Error Document: 404.html
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue