You can replace the '404 Not Found' header by adding something like this
in config.php:
$PageNotFoundHeaderFmt = 'HTTP/1.1 200 Ok';
PmWiki uses this for the Category/ group where category pages don't need
to exist in order to list pages they contain.
About the $AbortFunction, I'll add it for the next version.
Petko
On 2015-01-24 19:53, Carlos AB wrote:
Hi list,
I have been trying remove all 404 redirects inside PmWiki, as I get
lot's of 404 errors on google webmasters, also because I use a dirty
cheap webhosting service.
On the other hand, CMSes try to avoid displaying http status error
pages, as they serve a very simple and not so useful purpose. I
believe PmWiki should give admins the chance to choose what is best
for their use of PmWiki, not only for error pages but also the way the
abort function works.
I believe we should give administrative audiences a chance to change
the Abort function behavior, to achieve new uses and possibilities,
also APD and runkit cannot be easily installed by all, giving easy
access to function renaming capabilities.
Perhaps a new SDV($AbortFunction, NewAbortFunctionName); and make the
the abort function a stub that runs the function set by the SDV.
Even a new Set Default Function - SDF( Abort, NewAbortFunction), that
would have broad use with a simple syntax.
I would also ask if it is possible to keep redirecting status messages
inside the function as it is not done always in the same way along the
code and when changing it, you also have to change the main pmwiki
script.
Could please advise?
TIA
Carlos
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users