This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
404 [2013/04/19 14:54] 127.0.0.1 external edit |
404 [2014/01/15 23:15] (current) datiswous [Custom 404 Page] |
||
---|---|---|---|
Line 2: | Line 2: | ||
The standard content file for the error 404 page is created and saved in "/data/other/404.xml". | The standard content file for the error 404 page is created and saved in "/data/other/404.xml". | ||
- | To customize it create a new page called 404. It will override the standard version. | + | To customize it create a new page with slug((Slug: See wiki section: [[:basics|Admin Reference/GetSimple Basics]])) 404. It will override the standard version. |
The code is in index.php | The code is in index.php | ||
- | <code># define page, spit out 404 if it doesn't exist | + | <code php># define page, spit out 404 if it doesn't exist |
$file = GSDATAPAGESPATH . $id .'.xml'; | $file = GSDATAPAGESPATH . $id .'.xml'; | ||
$file_404 = GSDATAOTHERPATH . '404.xml'; | $file_404 = GSDATAOTHERPATH . '404.xml'; |