RewriteEngine On
#RewriteBase /

#
RewriteRule ^forum/prime$									forum/index.php
RewriteRule ^forum/razdel([0-9]+)-([a-zA-Z0-9-]+)$			forum/viewforum.php?forum_id=$1
RewriteRule ^forum/topic([0-9]+)-([a-zA-Z0-9-]+)$			forum/viewthread.php?thread_id=$1
#   
RewriteRule ^lastpost([0-9-]+)$		    	                &pid=$1#post_$1
#
RewriteRule ^administration/editnews([0-9]+)$               administration/news.php?aid=_AIDLINKk&action=edit&news_id=$1
RewriteRule ^news$											news.php
RewriteRule ^news([0-9]+)-([a-zA-Z0-9-]+)$					news.php?readmore=$1
RewriteRule ^razdely-novostei$								news_cats.php
RewriteRule ^razdel-novostei([0-9]+)-([a-zA-Z0-9-]+)$		news_cats.php?cat_id=$1
RewriteRule ^print_news([0-9]+)-([a-zA-Z0-9-]+)$			print.php?type=N&item_id=$1
#
RewriteRule ^administration/editarticle([0-9]+)$            administration/articles.php?aid=_AIDLINK&action=edit&article_id=$1
RewriteRule ^article([0-9]+)-([a-zA-Z0-9-]+)$				articles.php?article_id=$1
RewriteRule ^razdel-statei([0-9]+)-([a-zA-Z0-9-]+)$		    articles.php?cat_id=$1
RewriteRule ^razdely-statei$								articles.php
RewriteRule ^print_article([0-9]+)-([a-zA-Z0-9-]+)$			print.php?type=A&item_id=$1
#
RewriteRule ^photogallery$									photogallery.php
RewriteRule ^photoalbum([0-9]+)-([a-zA-Z0-9-]+)$		    photogallery.php?album_id=$1
RewriteRule ^photo([0-9]+)-([a-zA-Z0-9-]+)$					photogallery.php?photo_id=$1
RewriteRule ^photo([0-9]+)$					                photogallery.php?photo_id=$1
#
RewriteRule ^profile([0-9]+)-([a-zA-Z0-9-]+)$				profile.php?lookup=$1
#.
RewriteRule ^page([0-9]+)-([a-zA-Z0-9-]+)$					viewpage.php?page_id=$1
#F.A.Q.
RewriteRule ^faq$									        faq.php
RewriteRule ^razdel-faq([0-9]+)-([a-zA-Z0-9-]+)$			faq.php?cat_id=$1
#
RewriteRule ^weblinks$							        	weblinks.php
RewriteRule ^razdel-ssylok([0-9]+)-([a-zA-Z0-9-]+)$		    weblinks.php?cat_id=$1
RewriteRule ^ssylka([0-9]+)-([a-zA-Z0-9-]+)$				weblinks.php?weblink_id=$1

