Problems, need help? Have a tip or advice? Post it here.
12 posts Page 2 of 2
My concern about this method is for search engines that will receive // header('HTTP/1.1 404 Not Found'); // before the redirect from 404.php happens.

It is true that Couch sets the following before executing 404.php
Code: Select all
header('HTTP/1.1 404 Not Found');
header('Status: 404 Not Found');

However, those headers have not been sent yet at this point - which means if we set the same headers to new values in 404.php the new values will override the previously set values.

I haven't tested this but I think when 404.php redirects to a new page, that redirection code would automatically override the previous code and we won't have anything extra to do.

In case, that is not the case, we'll only have to put in two lines of PHP to effect the reset.
There is now an addon for this -
viewtopic.php?f=8&t=13018#p37107
12 posts Page 2 of 2
cron