root/branches/portal_by_daris/include/rewrite_rules.php

Revision 25, 0.7 KB (checked in by daris, 3 years ago)

portal: rss fix

Line 
1<?php
2/***********************************************************************
3
4        PunBB extension
5        Portal
6        Daris <daris91@gmail.com>
7
8************************************************************************/
9
10
11// Make sure no one attempts to run this script "directly"
12if (!defined('FORUM'))
13        exit;
14
15
16$forum_rewrite_rules_portal = array(
17        '/^forum(\.html?|\/)?$/i'                       => 'index.php?forum',
18        '/^pages(\.html?|\/)?$/i'                       => 'index.php?pages',
19        '/^page[\/_-]?([0-9]+).*(\.html?|\/)?$/i'       => 'index.php?page=$1',
20        '/^news[\/_-](rss|atom)(\.html?|\/)?$/i'        => 'extern.php?news_feed&type=$1',
21);
22
23$forum_rewrite_rules = array_merge($forum_rewrite_rules, $forum_rewrite_rules_portal);
Note: See TracBrowser for help on using the browser.