Re: Notes affecting manual contributors

From: Date: Mon, 27 Mar 2006 17:21:17 +0000
Subject: Re: Notes affecting manual contributors
References: 1 2 3 4 5 6  Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-2003@lists.php.net to get a copy of this message
That kind of thing's supposed to be the job of mod_rewrite. It seems to be doing something like this at present though - it's redirecting to the lookup page, but then if the lookup finds a match it sees it as an array, so it fails anyway.
I don't think mod_rewrite can handle that because there are too many options. It would be hard for mod_rewrite to know which widget the method belongs to.
I don't know mod_rewrite, so I'll take your word for it :)
Don't we really just want to hand off to the search script all of the time? Why do the same thing in this file that the search script will already be doing? We may want to use error/index.php to break the URI up a little before handing off to the search script but I don't think we really need to do any more than that.
The original point of error/index.php was simply to give pretty 404's. The point is that if we're moving an url (which we're doing at present) we should give people a chance to find the new url when they type in the old one...
The search script should return a list of pages that are pretty good matches and should probably redirect to the doc page if there is one and only one exact match.
It does do that, yes. That has nothing to do with this file.
error/index.php may need to handle the fallback to manual1 but I would think the search might take care of that as well.
It needs to be in the error handling... search only looks at manual1. Manual version 2 will have a completely different search engine. - Steph

« previous php.gtk.doc (#2003) next »