Hi All,
I'm trying to come up with a better 404 response for a small personal
homepage site that runs on MediaWiki 1.5.6.
At the moment in the .htaccess I have this:
=============================================
[holt]$ cat .htaccess
ErrorDocument 404 /index.php?title=404_Not_Found
[holt]$
=============================================
And in the "404_Not_Found" article I have this:
=============================================
Whatever you were looking for, it's not here any more.
To find it, please try the [[Main Page|homepage]], or see the
[[Special:Allpages|site map]] below, or use the search option on the
left.
----
{{Special:Allpages}}
=============================================
It's better than nothing, but it's not ideal, for 2 reasons:
* It also shows the "Display pages starting at:" and "Namespace:"
query parts of the "Special:Allpages" form, and I do wish it wouldn't.
* It doesn't search on the terms of the 404. Ideally I would want it
to be like the user searching on the missing page, and include the
"Article title matches" and the "Page text matches" sections of the
search result (if any), but again without the "Search in namespaces"
form stuff.
So basically:
* Few sentences of blurb explaining it's missing.
* Search results based on the URL of what they search for (only if
there were search results), without the Search form.
* Then a list of Allpages (but without the form).
Without writing a new "Special" page, is there any way to do something
like this? Or would it have to be done via a special page? Or is there
something that would do one of the above two things (either Allpages
inclusion without form, or search results inclusion without form)
without having to make a new special page?
All the best,
Nick.