RewriteEngine on
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L] 
RewriteRule page-(.*)\.html$ index.php?act=$1&id&page=$2
RewriteRule "^game/([0-9]+)/(.*)\.html$" index.php?act=game&id=$1 [Last]
RewriteRule category/(.*)/(.*)\.html$ index.php?act=cat&id=$1&page=$2
RewriteRule terms.html$ index.php?act=terms
RewriteRule aboutus.html$ index.php?act=aboutus
RewriteRule contactus.html$ index.php?act=contactus
RewriteRule members.html$ index.php?act=members
RewriteRule news.html$ index.php?act=news
RewriteRule links.html$ index.php?act=links
RewriteRule small_footer.html$ index.php?act=small_footer
RewriteRule addlink.html$ index.php?act=addlink
RewriteRule editavatar.html$ index.php?act=editavatar
RewriteRule favourites.html$ index.php?act=favourites
RewriteRule profile.html$ index.php?act=profile
RewriteRule register.html$ index.php?act=register
RewriteRule forgotpassword.html$ index.php?act=forgotpassword
RewriteRule members/(.*)\.html$ index.php?act=members&page=$1 
RewriteRule showmember/(.*)\.html$ index.php?act=showmember&id=$1
RewriteRule "^news/(.*)\.html$" index.php?act=news&page=$1
RewriteRule shownews/(.*)\.html$ index.php?act=shownews&id=$1
RewriteRule links/(.*)\.html$ index.php?act=links&page=$1
RewriteRule favourites/(.*)\.html$ index.php?act=favourites&page=$1
RewriteRule download.html$ index.php?act=download
RewriteRule download/(.*)\.html$ index.php?act=download&page=$1
RewriteRule unsubscribe.html$ index.php?act=unsubscribe