RewriteEngine On
RewriteRule ^users/?([a-z]+)/?([0-9]+).htm$ view.php?l=$1&id=$2 [L]
RewriteRule ^stat/?([a-z]+)/?$ stat.php?l=$1 [L]
RewriteRule ^lastest/?([a-z]+)/?([0-9]+)/?([0-9]+)$	last.php?l=$1&from=$2&gender=$3 [L]
RewriteRule ^best/?([a-z]+)/?([0-9]+)/?([0-9]+)/?([0-9]+)$	top.php?l=$1&from=$2&gender=$3&pic=$4 [L]
RewriteRule ^hotornot/?([a-z]+)/?([0-9]+)/?([0-9]+)$	hot_top.php?l=$1&from=$2&gender=$3 [L]
RewriteRule ^usersblogs/?([a-z]+)/?([0-9]+)/?([0-9]+|all)$	users_blogs.php?l=$1&from=$2&cat=$3 [L]
RewriteRule ^myblog/?([a-z]+)/?([0-9]+)$	blog_entry.php?l=$1&id=$2 [L]
RewriteRule ^forum/?([a-z]+)$	forum/index.php?l=$1 [L]
RewriteRule ^forum/?([a-z]+)/?([0-9]+)/?(.*)$	forum/forum.php?l=$1&fid=$2 [L]
RewriteRule ^forum_thread/?([a-z]+)/?([a-z0-9]+)/?([0-9]+)/?(.*)$	forum/thread.php?l=$1&from=$2&tid=$3 [L]
RewriteRule ^site/?([a-z]+)/?([0-9]+)/?(.*)$	links.php?l=$1&sid=$2 [L]
RewriteRule ^sites/?([a-z]+)/?([0-9]+)/([0-9]+)/?(.*)$	links.php?l=$1&from=$2&cid=$3 [L]