RULE_0_START:
match URL into $ with ^/([0-9]+)/spacelist(.*)$
if not matched then goto RULE_0_END
set URL = /index.php?$1/action_spacelist$2
RULE_0_END:
RULE_1_START:
match URL into $ with ^/([0-9]+)/viewspace(.+)$
if not matched then goto RULE_1_END
set URL = /index.php?$1/action_viewspace_itemid$2
RULE_1_END:
RULE_2_START:
match URL into $ with ^/([0-9]+)/viewbbs(.+)$
if not matched then goto RULE_2_END
set URL = /index.php?$1/action_viewbbs_tid$2
RULE_2_END:
RULE_3_START:
match URL into $ with ^/([0-9]+)/(.*)$
if not matched then goto RULE_3_END
set URL = /index.php?$1/$2
RULE_3_END:
RULE_4_START:
match URL into $ with ^/([0-9]+)$
if not matched then goto RULE_4_END
set URL = /index.php?$1
RULE_4_END:
RULE_5_START:
match URL into $ with ^/action(.+)$
if not matched then goto RULE_5_END
set URL = /index.php?action$1
RULE_5_END:
RULE_6_START:
match URL into $ with ^/([0-9]+)(.*)$
if not matched then goto RULE_6_END
set URL = /index.php?action/space/uid/$1$2
RULE_6_END:
RULE_7_START:
match URL into $ with ^/category(.+)$
if not matched then goto RULE_7_END
set URL = /index.php?action_category_catid$1
RULE_7_END:
RULE_8_START:
match URL into $ with ^/itemlist(.+)$
if not matched then goto RULE_8_END
set URL = /index.php?action_itemlist_catid$1
RULE_8_END:
RULE_9_START:
match URL into $ with ^/viewnews(.+)$
if not matched then goto RULE_9_END
set URL = /index.php?action_viewnews_itemid$1
RULE_9_END:
RULE_10_START:
match URL into $ with ^/viewthread(.+)$
if not matched then goto RULE_10_END
set URL = /index.php?action_viewthread_tid$1
RULE_10_END:
RULE_11_START:
match URL into $ with ^/index([\.a-zA-Z0-9]*)$
if not matched then goto RULE_11_END
set URL = /index.php
RULE_11_END: