#  mod_rewrite
RewriteEngine on

Options +FollowSymlinks
RewriteRule ((%3A|:)25|%0D%0A) - [G]

<Files config.php>
deny from all
</Files>



##ALLS
RewriteRule ^news.htm?$  news.php
RewriteRule ^news_cats.htm?$  news_cats.php
RewriteRule ^articles.htm?$  articles.php
RewriteRule ^photogallery.htm?$  photogallery.php
RewriteRule ^downloads.htm?$  downloads.php
RewriteRule ^contact.htm?$  contact.php
RewriteRule ^faq.htm?$  faq.php
RewriteRule ^profile.htm?$  profile.php
RewriteRule ^weblinks.htm?$  weblinks.php
RewriteRule ^profile_([0-9]{1,15}).htm?$  profile.php?lookup=$1 [L]
RewriteRule ^submit_([^\/]*).htm?$  submit.php?stype=$1 [L]
RewriteRule ^print_([^\/]*)_([0-9]{1,15}).htm?$ print.php?type=$1&item_id=$2 [L]


##NEWS
RewriteRule ^news_([0-9]{1,15}).htm?$ news.php?readmore=$1 [L]
RewriteRule ^news_cat_([0-9]{1,15}).htm?$  news_cats.php?cat_id=$1 [L]
RewriteRule ^news_page_([0-9]{1,15}).htm?$ news.php?rowstart=$1 [L]
RewriteRule ^news_([0-9]{1,15})_page_([0-9]{1,15}).htm?$ news.php?readmore=$1&c_start=$2 [L]
RewriteRule ^news_([0-9]{1,15})_edit_([0-9]{1,15}).htm?$ news.php?readmore=$1&c_action=edit&comment_id=$2 [L]
RewriteRule ^news_([0-9]{1,15})_delete_([0-9]{1,15}).htm?$ news.php?readmore=$1&c_action=delete&comment_id=$2 [L]


##ARTICLES
RewriteRule ^article_([0-9]{1,15}).htm?$ articles.php?article_id=$1 [L]
RewriteRule ^article_cat_([0-9]{1,15}).htm?$  articles.php?cat_id=$1 [L]
RewriteRule ^article_cat_([0-9]{1,15})_page_([0-9]{1,15}).htm?$ articles.php?cat_id=$1&rowstart=$2 [L]
RewriteRule ^article_break_([0-9]{1,15})_page_([0-9]{1,15}).htm?$ articles.php?article_id=$1&rowstart=$2 [L]
RewriteRule ^article_([0-9]{1,15})_page_([0-9]{1,15}).htm?$ articles.php?article_id=$1&c_start=$2 [L]
RewriteRule ^article_([0-9]{1,15})_edit_([0-9]{1,15}).htm?$ articles.php?article_id=$1&c_action=edit&comment_id=$2 [L]
RewriteRule ^article_([0-9]{1,15})_delete_([0-9]{1,15}).htm?$ articles.php?article_id=$1&c_action=delete&comment_id=$2 [L]


##DOWNLOADS
RewriteRule ^download_([0-9]{1,15}).htm?$ downloads.php?download_id=$1 [L]
RewriteRule ^download_cat_([0-9]{1,15}).htm?$  downloads.php?cat_id=$1 [L]
RewriteRule ^download_cat_([0-9]{1,15})_page_([0-9]{1,15}).htm?$ downloads.php?cat_id=$1&rowstart=$2 [L]
RewriteRule ^download_cat_([0-9]{1,15})_id_([0-9]{1,15}).htm?$ downloads.php?cat_id=$1&download_id=$2 [L]


##F.A.Q.
RewriteRule ^faq_([0-9]{1,15}).htm?$ faq.php?faq_id=$1 [L]
RewriteRule ^faq_cat_([0-9]{1,15}).htm?$  faq.php?cat_id=$1 [L]
RewriteRule ^faq_cat_([0-9]{1,15})_page_([0-9]{1,15}).htm?$ faq.php?cat_id=$1&rowstart=$2 [L]


##PHOTOALBUM
RewriteRule ^photogallery_([0-9]{1,15}).htm?$ photogallery.php?album_id=$1 [L]
RewriteRule ^photogallery_page_([0-9]{1,15}).htm?$ photogallery.php?rowstart=$1 [L]
RewriteRule ^photo_([0-9]{1,15}).htm?$ photogallery.php?photo_id=$1 [L]
RewriteRule ^photogallery_([0-9]{1,15})_page_([0-9]{1,15}).htm?$ photogallery.php?album_id=$1&rowstart=$2 [L]
RewriteRule ^photo_([0-9]{1,15})_page_([0-9]{1,15}).htm?$ photogallery.php?photo_id=$1&c_start=$2 [L]
RewriteRule ^photo_([0-9]{1,15})_delete_([0-9]{1,15}).htm?$ photogallery.php?photo_id=$1&c_action=delete&comment_id=$2 [L]
RewriteRule ^photo_([0-9]{1,15})_edit_([0-9]{1,15}).htm?$ photogallery.php?photo_id=$1&c_action=edit&comment_id=$2 [L]


##WEBLINKS
RewriteRule ^weblink_([0-9]{1,15}).htm?$ weblinks.php?weblinks_id=$1 [L]
RewriteRule ^weblink_cat_([0-9]{1,15}).htm?$  weblinks.php?cat_id=$1 [L]
RewriteRule ^weblink_cat_([0-9]{1,15})_page_([0-9]{1,15}).htm?$ weblinks.php?cat_id=$1&rowstart=$2 [L]
RewriteRule ^weblinks_cat_([0-9]{1,15})_id_([0-9]{1,15}).htm?$ weblinks.php?cat_id=$1&weblinks_id=$2 [L]

