'faqs', 'regex' => '^{alias}/?$', // matched against url, and if true, redirected to 'redirect' below. 'sef' => '{alias}', // used by e107::url(); to create a url from the db table. 'redirect' => '{e_PLUGIN}faqs/faqs.php', // file-path of what to load when the regex returns true. ); $config['item'] = array( 'alias' => 'faqs', 'regex' => '^{alias}/(\d*)-(.*)$', 'sef' => '{alias}/{faq_id}-{faq_sef}', // {faq_info_sef} is substituted with database value when parsed by e107::url(); 'redirect' => '{e_PLUGIN}faqs/faqs.php?id=$1' ); $config['search'] = array( 'alias' => 'faqs', 'regex' => '^{alias}/\?srch=(.*)$', // matched against url, and if true, redirected to 'redirect' below. 'sef' => '{alias}/', // used by e107::url(); to create a url from the db table. 'redirect' => '{e_PLUGIN}faqs/faqs.php?srch=$1', // file-path of what to load when the regex returns true. ); $config['tag'] = array( 'alias' => 'faqs', 'regex' => '^{alias}/tag/(.*)$', 'sef' => '{alias}/tag/{tag}', // {faq_info_sef} is substituted with database value when parsed by e107::url(); 'redirect' => '{e_PLUGIN}faqs/faqs.php?tag=$1' ); $config['category'] = array( 'alias' => 'faqs', 'regex' => '^{alias}/(.*)$', 'sef' => '{alias}/{faq_info_sef}', // {faq_info_sef} is substituted with database value when parsed by e107::url(); 'redirect' => '{e_PLUGIN}faqs/faqs.php?cat=$1' ); return $config; } }