* RewriteRule ^(.*)$ index.php?key=$1 [L,NS] */ require_once dirname(dirname(__FILE__)).'/members/includes/webinit.php'; $key = get_request('key'); if (!empty($key)) { $journal = null; if (strpos($key,'/')) { $key_parts = explode('/', $key); $journal = db_firstselect('journals.journal', array('short_name'=>$key_parts[1])); if (empty($journal)) { $journal = db_firstselect('journals.journal', array('short_name'=>$key_parts[0])); } } else { $journal = db_firstselect('journals.journal', array('short_name'=>$key)); } if (!empty($journal)) { Header("Location: /members/journals/index.php?j_id=".$journal['journal_id']); exit; } else { Header("Location: /members/journals/index.php"); exit; } } else { Header("Location: /members/journals/index.php"); exit; } ?>