<Files ~ "^\.ht">
deny from all
</Files>

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
<[foreach from=$group_array item=group]>
RewriteRule ^<[$group.group_dir_name]>/<[$group.group_upload_dir_name]>/(.*) bc_manager/data/<[$group.group_code]>/$1
RewriteRule ^<[$group.group_dir_name]>/(index.html)?$ bc_manager/index.php?mode=42&group_code=<[$group.group_code]>
RewriteRule ^<[$group.group_dir_name]>/category([0-9]+).html$ bc_manager/index.php?mode=43&group_code=<[$group.group_code]>&category_code=$1
RewriteRule ^<[$group.group_dir_name]>/news([0-9]+).html$ bc_manager/index.php?mode=44&group_code=<[$group.group_code]>&entry_code=$1
RewriteRule ^<[$group.group_dir_name]>/module([0-9]+).dat$ bc_manager/index.php?mode=45&group_code=<[$group.group_code]>&module_code=$1
RewriteRule ^<[$group.group_dir_name]>/sitemap.xml$ bc_manager/index.php?mode=56&group_code=<[$group.group_code]>
<[if $group.group_rss1_output]>
RewriteRule ^<[$group.group_dir_name]>/<[$group.group_rss1_file_name]>$ bc_manager/index.php?mode=46&group_code=<[$group.group_code]>
<[/if]>
<[if $group.group_rss2_output]>
RewriteRule ^<[$group.group_dir_name]>/<[$group.group_rss2_file_name]>$ bc_manager/index.php?mode=47&group_code=<[$group.group_code]>
<[/if]>
<[if $group.group_atom_output]>
RewriteRule ^<[$group.group_dir_name]>/<[$group.group_atom_file_name]>$ bc_manager/index.php?mode=48&group_code=<[$group.group_code]>
<[/if]>
RewriteRule ^<[$group.group_dir_name]>/base.css$ bc_manager/index.php?mode=60&group_code=<[$group.group_code]>
RewriteRule ^<[$group.group_dir_name]>/bitcube.css$ bc_manager/index.php?mode=61&group_code=<[$group.group_code]>
RewriteRule ^<[$group.group_dir_name]>/bitcube_ie5win.css$ bc_manager/index.php?mode=62&group_code=<[$group.group_code]>
<[/foreach]>
</IfModule>