[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...