ErrorDocument 404 http://fonzo.ru/?404
ErrorDocument 403 http://fonzo.ru/?403
ErrorDocument 500 http://fonzo.ru/?500

Options -Indexes

AddType text/vnd.sun.j2me.app-descriptor;charset=UTF-8 jad 
AddType application/java-archive jar
AddType application/vnd.mophun.application mpn
AddType application/vnd.smaf mmf
AddType audio/amr amr
AddType application/vnd.symbian.install sis
AddType application/vnd.eri.thm thm
AddType application/vnd.siemens-mp.theme sdt
AddType video/3gpp 3gp
AddType video/mp4 mp4

php_value error_reporting 7

# 
#php_value arg_separator.output &
#php_value arg_separator.input &amp;

#php_value url_rewriter.tags "a=href,area=href,frame=src,input=src,img=src,fieldset="
php_value url_rewriter.tags "a=href,area=href,frame=src,input=src,fieldset="

RewriteEngine On
RewriteBase /

# RSS
#RewriteRule ^rss.xml(/?)+$ /engine/rss.php
#RewriteRule ^category/([^/]*)/rss.xml(/?)+$ /engine/rss.php?do=cat&category=$1

#  
RewriteRule ^addnews(/?)+$ /?do=addnews&%{QUERY_STRING}

#  
RewriteRule ^show(/?)+$ /?do=show&%{QUERY_STRING}
RewriteRule ^view(/?)+$ /view.php?&%{QUERY_STRING}

# 
RewriteRule ^stats(/?)+$ /?do=stats&%{QUERY_STRING}

# 
RewriteRule ^category(/?)+$ /?do=cat&%{QUERY_STRING}
RewriteRule ^category/([^/]*)(/?)+$ /?do=cat&category=$1&%{QUERY_STRING}
RewriteRule ^category/([^/]*)/page/([0-9]+)(/?)+$ /?do=cat&category=$1&cstart=$2&%{QUERY_STRING}

# 
RewriteRule ^cal(/?)+$ /?do=calendar&%{QUERY_STRING}
#RewriteRule ^cal/([0-9]{2})(/?)+$ /?do=calendar&month=$1&%{QUERY_STRING}
RewriteRule ^cal/([0-9]{4})/([0-9]{2})(/?)+$ /?do=calendar&year=$1&month=$2&%{QUERY_STRING}

# pm
RewriteRule ^pm(/?)+$ /?do=pm&%{QUERY_STRING}
RewriteRule ^pm/(inbox|outbox|newpm|del)(/?)+$ /?do=pm&doaction=$1&%{QUERY_STRING}
#RewriteRule ^pm/(.*)/(.*)(/?)+$ /?do=pm&doaction=$1&pmid=$2&%{QUERY_STRING}
RewriteRule ^pm/(readpm|del)-(.*)(/?)+$ /?do=pm&doaction=$1&pmid=$2&%{QUERY_STRING}
RewriteRule ^pm/(newpm)-(.*)(/?)+$ /?do=pm&doaction=$1&replyid=$2&%{QUERY_STRING}
RewriteRule ^pm/newpmto-(.*)(/?)+$ /?do=pm&doaction=newpm&user=$1&%{QUERY_STRING}

# 
RewriteRule ^rate/([0-9]+)/([1-5]+)(/?)+$ /?do=rate&news_id=$1&go_rate=$2&%{QUERY_STRING}

#    
RewriteRule ^user(/?)+$ /?do=user&%{QUERY_STRING}
RewriteRule ^user/([^/]*)(/?)+$ /?subaction=userinfo&user=$1&%{QUERY_STRING}
RewriteRule ^user/([^/]*)/page/([0-9]+)(/?)+$ /?subaction=userinfo&user=$1&cstart=$2&%{QUERY_STRING}

#   
RewriteRule ^newposts(/?)+$ /?subaction=newposts&%{QUERY_STRING}
RewriteRule ^newposts/page/([0-9]+)(/?)+$ /?subaction=newposts&cstart=$1&%{QUERY_STRING}

# 
RewriteRule ^page(/?)+$ /?cstart=0&%{QUERY_STRING}
RewriteRule ^page/(.*)$ /?cstart=$1&%{QUERY_STRING}

#  
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),([0-9]+),(.*).xml(/?)+$ /?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&cstart=$5&news_name=$6&%{QUERY_STRING}
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),(.*).xml(/?)+$ /?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5&%{QUERY_STRING}
#RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/print:page,([0-9]+),(.*).xml(/?)+$ /engine/print.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5&%{QUERY_STRING}
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*).xml(/?)+$ /?subaction=showfull&year=$1&month=$2&day=$3&news_name=$4&%{QUERY_STRING}

#  
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})(/?)+$ /?year=$1&month=$2&day=$3&%{QUERY_STRING}
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page/([0-9]+)(/?)+$ /?year=$1&month=$2&day=$3&cstart=$4&%{QUERY_STRING}

#   
RewriteRule ^([0-9]{4})/([0-9]{2})(/?)+$ /?year=$1&month=$2&%{QUERY_STRING}
RewriteRule ^([0-9]{4})/([0-9]{2})/page/([0-9]+)(/?)+$ /?year=$1&month=$2&cstart=$3&%{QUERY_STRING}

#    
RewriteRule ^([0-9]{4})(/?)+$ /?year=$1&%{QUERY_STRING}
RewriteRule ^([0-9]{4})/page/([0-9]+)(/?)+$ /?year=$1&cstart=$2&%{QUERY_STRING}

#  
RewriteRule ^static/(.*).xml(/?)+$ /?do=static&page=$1&%{QUERY_STRING}
RewriteRule ^static/(.*).html(/?)+$ /?do=static&page=$1&%{QUERY_STRING}

#   
RewriteRule ^favorites(/?)+$ /?do=favorites&%{QUERY_STRING}
RewriteRule ^favorites/page/([0-9]+)(/?)+$ /?do=favorites&cstart=$1&%{QUERY_STRING}