<?php

function wiki404_menu($may_cache) {
  $items = array();
  if ($may_cache) {
 
  } else {
    $items[] = array(
      'path' => 'wiki',
      'callback' => 'wiki404_redirect',
      'access' => 1,
      'type' => MENU_CALLBACK
    );
  }
  return $items;
}

function wiki404_redirect() {
  if (arg(0)=='wiki' && arg(1)) {
    drupal_goto('freelinking/'.urlencode(arg(1)));
  } else {
    return drupal_not_found();
  }
}

?>