DirectoryIndex index.php index.html
Options Includes FollowSymLinks

RewriteEngine On 

#  1: Module (old style call) default action
RewriteRule ^([^\+]+)\+main.html$ modules.php?op=modload&name=$1&file=index [L]

#  2: Module (old style call) with just a req parameter
RewriteRule ^([^\+]+)\+([a-zA-Z0-9_]+).html$ modules.php?op=modload&name=$1&file=index&req=$2 [L]

#  3: Module (new style call) default action
RewriteRule ^([^-]+)-main.html$ index.php?module=$1&func=main [L]

#  4: Article Full Story with default parameters
RewriteRule ^displayarticle([0-9]+).html$ modules.php?op=modload&name=News&file=article&sid=$1&mode=thread&order=0&thold=0 [L]

#  5: Article Full Story with default parameters but mode specified
RewriteRule ^displayarticle([0-9]+)-([^\.])+.html$ modules.php?op=modload&name=News&file=article&sid=$1&mode=$2&order=0&thold=0 [L]

#  6: Send an email about an article
RewriteRule ^sendarticle([0-9]+).html$ modules.php?op=modload&name=Recommend_Us&file=index&req=FriendSend&sid=$1 [L]

#  7: Print an  article
RewriteRule ^printarticle([0-9]+).html$ print.php?sid=$1 [L]

#  8: Content Express links for menus
RewriteRule ^Content-([^-]+)-([0-9]+)-([0-9]+)-menu.html$ index.php?module=ContentExpress&func=display&bid=$2&btitle=$1&mid=$3&ceid=-1 [L]

#  9: Content Express links
RewriteRule ^Content-([^-]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ index.php?module=ContentExpress&func=display&bid=$2&btitle=$1&mid=$3&ceid=$4 [L]

# 10: List articles in a topic
RewriteRule ^Topic([0-9]+).html$ modules.php?op=modload&name=News&file=index&catid=&topic=$1 [L]

# 11: List all articles in a topic
RewriteRule ^Topic([0-9]+)allstories.html$ modules.php?op=modload&name=News&file=index&catid=&topic=$1&allstories=1 [L]

# 12: Module (old style call) 5 parameters
RewriteRule ^([^\+]+)\+([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([a-zA-Z0-9_]+).html$ modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6&$7=$8&$9=$10 [L]

# 12: Module (old style call) 4 parameters
RewriteRule ^([^\+]+)\+([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([a-zA-Z0-9_]+).html$ modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6&$7=$8 [L]

# 13: Module (old style call) 3 parameters
RewriteRule ^([^\+]+)\+([^-]+)-([^-]+)-([^-]+)-([^-]+)-([a-zA-Z0-9_]+).html$ modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6 [L]

# 14: Module (new style call) 1 parameters
RewriteRule ^([^\+]+)-([^-]+)-([^-]+)-([a-zA-Z0-9_]+).html$ index.php?module=$1&func=$2&$3=$4 [L]

