Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)(\/)+$ /index.php\?mod=list&type=$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)\.html([^\.]*)$ /index.php\?mod=article&id=$1

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php
