Open eroonkang opened 10 years ago
Hey @eroonkang, 404.html
is only the final fallback, it will look for a 404 page and template first.
ie. content/404
.
Will that let you do what want?
I think not, butI'm happy to be proven wrong. Here's what I tried:
404.php
in /public
, resulting in both 404.php
and 404.html
to be present in the directory.ErrorDocument 404 /404.html
to ErrorDocument 404 /404.php
, in .htaccess
.Somehow, this still displays 404.html
, not the php.
404.html
to see what happens,And it would still not display the php. Instead, shows your fallback text from stacey.inc.php.
I also tried to change the line 149 and 150, to specifically look for 404.php
and while it displays the php, but comments out all the php code.
Am I missing anything? Thanks for help-
Change
echo file_get_contents(Config::$root_folder.'public/404.html');
to
include(Config::$root_folder.'public/404.html');
On 3.0.0:
Wanted to create
404.php
instead of404.html
in/public/
for my install, but realized there's a code bit in stacey.inc.php specifically asking for404.html
. Perhaps this can be changed in the later version?