array('blog', 'post'), # Browsing posts '!^/$!' => array('blog', 'posts'), '!^/page/([0-9]+)$!' => array('blog', 'posts'), # Tag pages '!^/tags/(.*)$!' => array('blog', 'tag'), # Date archives '!^/([0-9]{4})$!' => array('blog', 'year'), '!^/([0-9]{4})/([0-9]{2})$!' => array('blog', 'month'), '!^/([0-9]{4})/([0-9]{2})/([0-9]{2})$!' => array('blog', 'day'), # As a last resort, try to find a page and then 404 # If you need pages that fall deeper than the second level # you'll have to add routes for them. The 'show' function # can take any number of arguments, so it is still useful. '!^/([a-zA-Z0-9_\-]+)/([a-zA-Z0-9_\-]+)$!' => array('page', 'show'), '!^/([a-zA-Z0-9_\-]+)$!' => array('page', 'show') ); ?>