#************************************************************************/
#* Google Tap Beta 0.5.0 - 09 Feb 2003                                  */
#* Copyright (c) 2002 by Nuke Cops                                      */
#* http://nukecops.com                                                  */
#*                                                                      */
#* This program is free software. You can redistribute it and/or modify */
#* it under the terms of the GNU General Public License as published by */
#* the Free Software Foundation; either version 2 of the License.       */
#************************************************************************/

#Directions: rename this file to ".htaccess" without quotes.

DirectoryIndex index.php index.cgi index.pl index.shtml index.html

# deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
deny from all
</FilesMatch>

#Disable .htaccess viewing from browser
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>


<Files ~ "\config.php$">
deny from all
</Files>


<Limit GET PUT POST>
  Order Allow,Deny
  Allow from all
</Limit>

#Define your error document location, make sure to change the URL to your own.
ErrorDocument 400 http://www.computercops.biz/modules.php?name=Columbia 
ErrorDocument 403 http://www.computercops.biz/modules.php?name=Columbia
ErrorDocument 404 http://www.computercops.biz/modules.php?name=Columbia
ErrorDocument 500 http://www.computercops.biz/modules.php?name=Columbia


RewriteRule /index.html /index.php

#Articles
RewriteRule ^article([1-9][0-9]*).* modules.php?name=News&file=article&sid=$1

#Content
RewriteRule ^contentid-([1-9][0-9]*).html modules.php?name=Content&pa=showpage&pid=$1
RewriteRule ^content-cat-([1-9][0-9]*).html modules.php?name=Content&pa=list_pages_categories&cid=$1

#FAQ
RewriteRule ^faq.html modules.php?name=FAQ
RewriteRule ^faq-([0-9]*)-([a-zA-Z0-9+]*).html modules.php?name=FAQ&myfaq=yes&id_cat=$1&categories=$2

#Forums
RewriteRule ^forums.* modules.php?name=Forums&file=index
RewriteRule ^forumx([0-9]+)-([0-9]+)-([0-9]+).html modules.php?name=Forums&file=viewforum&f=$1&topicdays=$2&start=$3
RewriteRule ^forum([1-9][0-9]*).* modules.php?name=Forums&file=viewforum&f=$1
RewriteRule ^posts([0-9]*)-([0-9]*).html  modules.php?name=Forums&file=viewtopic&t=$1&start=$2
RewriteRule ^postx([0-9]+)-([0-9]+)-([0-9]+).html modules.php?name=Forums&file=viewtopic&t=$1&postdays=$2&postorder=asc&start=$3
RewriteRule ^post(p|t)([1-9][0-9]*).* modules.php?name=Forums&file=viewtopic&$1=$2

#Downloads
RewriteRule ^downloads.html modules.php?name=Downloads
RewriteRule ^downloads-cat-([0-9]*).html&orderby=([a-zA-Z_]*) modules.php?name=Downloads&d_op=viewdownload&cid=$1&orderby=$2
RewriteRule ^downloads-cats-([0-9]*)-([0-9]*)-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&min=$2&orderby=titleA&show=$3
RewriteRule ^downloads-cat-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downloads-file-([0-9]*)-details-([/:\-\'{}().&_a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$1&ttitle=$2
RewriteRule ^downloads-file-([0-9]*).html modules.php?name=Downloads&d_op=getit&lid=$1

#Stories Archive
RewriteRule ^archive.html modules.php?name=Stories_Archive
RewriteRule ^archive-([0-9]*)-([0-9]*)-([a-zA-Z]*).* modules.php?name=Stories_Archive&sa=show_month&year=$1&month=$2&month_l=$3

#Reviews
RewriteRule ^reviews.html modules.php?name=Reviews
RewriteRule ^reviews-([0-9]*).html modules.php?name=Reviews&rop=showcontent&id=$1
RewriteRule ^reviews-new.html modules.php?name=Reviews&rop=write_review
RewriteRule ^reviews-sortby-([a-zA-Z0-9]*).html modules.php?name=Reviews&rop=$1
RewriteRule ^reviews-comment-([0-9]*)-([a-zA-Z0-9]*).* modules.php?name=Reviews&rop=postcomment&id=$1&title=$2
RewriteRule ^reviews-([0-9]*)-delete.html modules.php?name=Reviews&rop=del_review&id_del=$1
RewriteRule ^reviews-([0-9]*)-edit.html modules.php?name=Reviews&rop=mod_review&id=$1

#Surveys
RewriteRule ^surveys.html modules.php?name=Surveys
RewriteRule ^survey([a-zA-Z0-9]*)results.html modules.php?name=Surveys&op=results&pollID=$1
RewriteRule ^survey([a-zA-Z0-9]*).html modules.php?name=Surveys&pollID=$1

#Submit
RewriteRule ^submit.html modules.php?name=Submit_News

#Search
#RewriteRule ^search.html modules.php?name=Search

#Top10
RewriteRule ^top.html modules.php?name=Top

#Topics
RewriteRule ^topics.html modules.php?name=Topics

#Your Account
RewriteRule ^userinfo-([a-zA-Z0-9_-]*).html modules.php?name=Your_Account&op=userinfo&uname=$1

#Web Links
RewriteRule ^viewlink-([0-9]*).html modules.php?op=modload&name=Web_Links&file=index&l_op=visit&lid=$1
RewriteRule ^link-([0-9]*).html modules.php?op=modload&name=Web_Links&file=index&l_op=viewlink&cid=$1
RewriteRule ^links.html modules.php?name=Web_Links

