RewriteEngine on
RewriteRule ^forum/index.php forum.php
RewriteRule ^forum/([a-z]+)/$ forum2.php?forum=$1
RewriteRule ^forum/([a-z]+)/newthread.php forumnewthread.php?forum=$1
RewriteRule ^forum/([a-z]+)/forumcheck.php forumcheck.php
RewriteRule ^forum/([a-z]+)/([^/]+)-([0-9]+)-([0-9]+) viewtopic.php?id=$3&page=$4&forum=$1 [NC]
RewriteRule ^forum/([a-z]+)/forumreply.php forumreply.php?forum=$1
RewriteRule ^chat/$ chat.php
RewriteRule ^chat/([a-z]+)/([0-9]+)$ chat2.php?room=$1&action=$2
RewriteRule ^chat/chatlogin.php chatlogin.php?room=$1
RewriteRule ^chat/([a-z]+)/([a-z]+)$ chatonline.php?room=$1
RewriteRule ^logout/$ logout.php
RewriteRule ^whosonline/$ onlinelist.php
RewriteRule ^inbox/$ inbox.php
RewriteRule ^inbox/send.php inboxsend.php
RewriteRule ^inbox/send2/([^/]+)$ inboxsend2.php?towho=$1
RewriteRule ^inbox/sent.php inboxsent.php
RewriteRule ^inbox/readinbox/([0-9]+)$ readinbox.php?id=$1
RewriteRule ^inbox/deleteinbox/([0-9]+)$ inboxdelete.php?id=$1
RewriteRule ^createprofile/$ createprofile.php
RewriteRule ^createprofile2/$ createprofile2.php
RewriteRule ^profile/([^/]+)$ profile.php?user=$1
RewriteRule ^profile/([^/]+)/([^/]+)$ userpics.php?user=$1
RewriteRule ^buddylist/$ buddylist.php
RewriteRule ^shoutbox/$ shoutbox.php
RewriteRule ^shoutbox/sent/$ shoutboxsent.php
RewriteRule ^chat/redirect.php$ chatredirect.php
RewriteRule ^secrets/$ secrets.php
RewriteRule ^secrets/newsecret.php$ newsecret.php
RewriteRule ^uploadimage/$ uploadimage.php
RewriteRule ^uploadimage/upload.php$ upload.php
RewriteRule ^gallery/$ gallery.php
