Размер файла: 1.01Kb
RewriteEngine on
RewriteBase /
# разделы
RewriteRule ^loads/r-([0-9]*)?$ loads/rzd.php?id=$1
RewriteRule ^loads/p-([0-9]*)?$ loads/pd.php?id=$1
RewriteRule ^loads/f-([0-9]*)?$ loads/fl.php?id=$1
# навинация
RewriteRule ^loads/f-([0-9]*)/([0-9]*)?$ loads/fl.php?id=$1&start=$2
RewriteRule ^loads/p-([0-9]*)/([0-9]*)?$ loads/pd.php?id=$1&start=$2
# файл, комменты ...
RewriteRule ^loads/([0-9]*)/([a-zA-Z0-9_]*)?$ loads/index.php?s=$1&dir=$2
RewriteRule ^loads/d([0-9]*)/([a-zA-Z0-9_]*)?$ loads/index.php?down=$1&dir=$2
RewriteRule ^loads/c([0-9]*)/([a-zA-Z0-9_]*)?$ loads/extra/comments.php?comm=$1&dir=$2
# передний подраздел
RewriteRule ^loads/do/([0-9]*)/([a-zA-Z0-9_]*)?$ loads/index.php?s=$1&dir=$2&sx=do
RewriteRule ^loads/do/d([0-9]*)/([a-zA-Z0-9_]*)?$ loads/index.php?down=$1&dir=$2&sx=do
RewriteRule ^loads/do/c([0-9]*)/([a-zA-Z0-9_]*)?$ loads/extra/comments.php?comm=$1&dir=$2&sx=do
ErrorDocument 400 /loads/?error=400
ErrorDocument 403 /loads/?error=403
ErrorDocument 404 /loads/?error=404