$v) { if($v === 'news' ) { $alias = $k; break; } } } $config['index'] = array( // 'regex' => '^gallery/?$', // matched against url, and if true, redirected to 'redirect' below. 'sef' => (!empty($alias)) ? $alias : 'news', // used by e107::url(); to create a url from the db table. 'redirect' => '{e_BASE}news.php', // file-path of what to load when the regex returns true. ); return $config; } }