[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Howto AliasMatch?



> Make your 404 not look like a 404... Remember in your RAQ, you have
> Apache... Maybe you installed the PHP? Great... Now think about this:
> your 404 page, written in php, detects what page the user actually
> requested. Now you have a database.
> Let's say we'll call it 'transition'.
> create table transition (
> old_url char(100),
> new_url char(100)
> )
> Now...
> select * from transition where old_url like '$page_requested'
> ...
> Pull the 'new url' out of it, do a header('HTTP/1.1 302 Found\nLocation:
> $new_url');
> The search engine will be a bit confused, but they'll get the new page...


That all sounds and looks nice, but it's a lot of work don't you think?
IMO, if you're going to go this far, you might as well let Apache handle
misspelling errors with mod_speling.  Then you bypass the PHP => SQL
function and everything inbetween.

Just a couple of pennies being thrown around..

--
Brian Curtis