[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Howto AliasMatch?
- Subject: Re: [cobalt-users] Howto AliasMatch?
- From: "Brian Curtis" <admin@xxxxxxxxxxx>
- Date: Mon Nov 27 17:30:01 2000
- Organization: Pomfret Computer Technologies
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> 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