Мне для полного счастья и надо только лишь, чтобы комментарии нормально пересчелкивались. Но я не знаю какие там строчки вписать. Вся ЧПУ представлена двумя файлами: config_rewrite.php, содержимое:
<?php
if (!defined("FUNC_FILE")) die("Illegal File Access");
$rewrite_out = array(
// Файлы
"Files-new.html",
"Files-print-\\1.html",
"Files-view-\\1-\\2.html",
"Files-view-\\1.html",
"Files-view-\\1.html",
"Files-broken-\\1.html",
"Files-list-\\1.html",
"Files-list.html",
"Files-add.html",
"Files-best-\\1.html",
"Files-best.html",
"Files-hits-\\1.html",
"Files-hits.html",
"Files-\\1.html",
"Files-cat-\\1-\\2.html",
"Files-cat-\\1.html",
"Files.html",
// Новости
"News-topic-\\1-page-\\2.html",
"News-topic-\\1.html",
"News-friendsend-\\1.html",
"News-print-\\1.html",
"News-view-\\1-\\2.html",
"News-view-\\1-word-\\2.html",
"News-view-\\1.html",
"News-list-\\1.html",
"News-list.html",
"News-best-\\1.html",
"News-best.html",
"News-hits-\\1.html",
"News-hits.html",
"News-cat-\\1-\\2.html",
"News-cat-\\1.html",
"News-\\1.html",
"News.html",
//Статьи
//Голосование
"Voting-pollresult-\\1.html",
"Voting-pollshow-\\1.html",
"Voting.html",
// ЧАВО
"Faq-showcat-\\1-asc.html",
"Faq-showcat-\\1-desc.html",
"Faq-showcat-\\1-az.html",
"Faq-showcat-\\1-za.html",
"Faq-showcat-\\1.html",
"Faq-send.html",
"Faq.html",
//Интернет радио
"Internet_Radio.html",
//Актуальные темы
"Topics.html",
//Рекомендовать
"Recommend.html",
//RSS информер
"Info.html",
//Поиск
"Search.html",
//Top пользоватилей
"ShowRules.html",
"ShowStats.html",
"Top_Users.html",
//Обратная связь
"Contact.html",
//генератор паролий
"Generate_password.html",
//Главная страница
"index.html",
);
$rewrite_in = array(
// Файлы
"'(?<!/)index.php\?name=Files&new'",
"'(?<!/)index.php\?name=Files&op=printe&id=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=view&id=([0-9]*)&num=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=view&id=([0-9]*)&word=([%&;/:|\s\-\'{}().&_a-zA-Zа-яА-Я0-9+=-]*)'",
"'(?<!/)index.php\?name=Files&op=view_file&lid=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=broken&lid=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=liste&num=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=liste'",
"'(?<!/)index.php\?name=Files&op=add_file'",
"'(?<!/)index.php\?name=Files&best=1&num=([0-9]*)'",
"'(?<!/)index.php\?name=Files&best=1'",
"'(?<!/)index.php\?name=Files&hits=1&num=([0-9]*)'",
"'(?<!/)index.php\?name=Files&hits'",
"'(?<!/)index.php\?name=Files&num=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=cat&id=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=cat&id=([0-9]*)'",
"'(?<!/)index.php\?name=Files'",
// Новости
"'(?<!/)index.php\?name=News&new_topic=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)index.php\?name=News&new_topic=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=friendsend&sid=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=printpage&sid=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=article&sid=([0-9]*)&num=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=article&sid=([0-9]*)&word=([%&;/:|\s\-\'{}().&_a-zA-Zа-яА-Я0-9+=-]*)'",
"'(?<!/)index.php\?name=News&op=article&sid=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=liste&num=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=liste'",
"'(?<!/)index.php\?name=News&best=1&num=([0-9]*)'",
"'(?<!/)index.php\?name=News&best=1'",
"'(?<!/)index.php\?name=News&hits=1&num=([0-9]*)'",
"'(?<!/)index.php\?name=News&hits=1'",
"'(?<!/)index.php\?name=News&cat=([0-9]*)&num=([0-9]*)'",
"'(?<!/)index.php\?name=News&cat=([0-9]*)'",
"'(?<!/)index.php\?name=News&num=([0-9]*)'",
"'(?<!/)index.php\?name=News'",
//Статьи
//Голосование
"'(?<!/)index.php\?name=Voting&op=poll_result&poll_id=([0-9]*)'",
"'(?<!/)index.php\?name=Voting&op=poll_show&poll_id=([0-9]*)'",
"'(?<!/)index.php\?name=Voting'",
//ЧАВО
"'(?<!/)index.php\?name=FAQ&op=showcat&id_cat=([0-9]*)&howorder=asc'",
"'(?<!/)index.php\?name=FAQ&op=showcat&id_cat=([0-9]*)&howorder=desc'",
"'(?<!/)index.php\?name=FAQ&op=showcat&id_cat=([0-9]*)&howorder=az'",
"'(?<!/)index.php\?name=FAQ&op=showcat&id_cat=([0-9]*)&howorder=za'",
"'(?<!/)index.php\?name=FAQ&op=showcat&id_cat=([0-9]*)'",
"'(?<!/)index.php\?name=FAQ&op=faqsend'",
"'(?<!/)index.php\?name=FAQ'",
//Интернет радио
"'(?<!/)index.php\?name=Internet_Radio'",
//Актуальные темы
"'(?<!/)index.php\?name=Topics'",
//Рекомендовать
"'(?<!/)index.php\?name=Recommend'",
//RSS информер
"'(?<!/)index.php\?name=Info'",
//Поиск
"'(?<!/)index.php\?name=Search'",
//Top пользоватилей
"'(?<!/)index.php\?name=Top_Users&op=ShowRules'",
"'(?<!/)index.php\?name=Top_Users&op=ShowStats'",
"'(?<!/)index.php\?name=Top_Users'",
//Обратная связь
"'(?<!/)index.php\?name=Contact'",
//Генератор паролий
"'(?<!/)index.php\?name=Genpass'",
//Главная страница
"'(?<!/)index.php'",
);
?>
RewriteEngine On
RewriteBase /
### Главная страница
RewriteRule ^index.html$ index.php [NC]
### Файлы
RewriteRule ^Files-new.html$ index.php?name=Files&new [NC,L]
RewriteRule ^Files-print-([0-9]*).html$ index.php?name=Files&op=printe&id=$1 [NC,L]
RewriteRule ^Files-view-([0-9]*)-([0-9]*).html$ index.php?name=Files&op=view&id=$1&num=$2 [NC,L]
RewriteRule ^Files-view-([0-9]*)-word-(.*).html$ index.php?name=Files&op=view&id=$1 [NC,L]
RewriteRule ^Files-view-([0-9]*).html$ index.php?name=Files&op=view_file&lid=$1 [NC,L]
RewriteRule ^Files-broken-([0-9]*).html$ index.php?name=Files&op=broken&lid=$1 [NC,L]
RewriteRule ^Files-list-([0-9]*).html$ index.php?name=Files&op=liste&num=$1 [NC,L]
RewriteRule ^Files-list.html$ index.php?name=Files&op=liste [NC,L]
RewriteRule ^Files-add.html$ index.php?name=Files&op=add_file [NC,L]
RewriteRule ^Files-best-([0-9]*).html$ index.php?name=Files&best=1&num=$1 [NC,L]
RewriteRule ^Files-best.html$ index.php?name=Files&best=1 [NC,L]
RewriteRule ^Files-hits-([0-9]*).html$ index.php?name=Files&hits=1&num=$1 [NC,L]
RewriteRule ^Files-hits.html$ index.php?name=Files&hits [NC,L]
RewriteRule ^Files-([0-9]*).html$ index.php?name=Files&num=$1 [NC,L]
RewriteRule ^Files-cat-([0-9]*)-([0-9]*).html$ index.php?name=Files&op=cat&id=$1&pagenum=$2 [NC,L]
RewriteRule ^Files-cat-([0-9]*).html$ index.php?name=Files&op=cat&id=$1 [NC,L]
RewriteRule ^Files.html$ index.php?name=Files [NC,L]
### Новости
RewriteRule ^News-topic-([0-9]*)-page-([0-9]*).html$ index.php?name=News&new_topic=$1&pagenum=$2 [NC,L]
RewriteRule ^News-topic-([0-9]*).html$ index.php?name=News&new_topic=$1 [NC,L]
RewriteRule ^News-friendsend-([0-9]*).html$ index.php?name=News&op=friendsend&sid=$1 [NC,L]
RewriteRule ^News-print-([0-9]*).html$ index.php?name=News&op=printpage&sid=$1 [NC,L]
RewriteRule ^News-view-([0-9]*)-([0-9]*).html$ index.php?name=News&op=article&sid=$1&num=$2 [NC,L]
RewriteRule ^News-view-([0-9]*)-word-(.*).html$ index.php?name=News&op=article&sid=$1&word=$2 [NC,L]
RewriteRule ^News-view-([0-9]*).html$ index.php?name=News&op=article&sid=$1 [NC,L]
RewriteRule ^News-list-([0-9]*).html$ index.php?name=News&op=liste&num=$1 [NC,L]
RewriteRule ^News-list.html$ index.php?name=News&op=liste [NC,L]
RewriteRule ^News-best-([0-9]*).html$ index.php?name=News&best=1&num=$1 [NC,L]
RewriteRule ^News-best.html$ index.php?name=News&best=1 [NC,L]
RewriteRule ^News-hits-([0-9]*).html$ index.php?name=News&hits=1&num=$1 [NC,L]
RewriteRule ^News-hits.html$ index.php?name=News&hits=1 [NC,L]
RewriteRule ^News-cat-([0-9]*)-([0-9]*).html$ index.php?name=News&cat=$1&num=$2 [NC,L]
RewriteRule ^News-cat-([0-9]*).html$ index.php?name=News&cat=$1 [NC,L]
RewriteRule ^News-([0-9]*).html$ index.php?name=News&num=$1 [NC,L]
RewriteRule ^News.html$ index.php?name=News [NC,L]
### Статьи
### Голосование
RewriteRule ^Voting-pollresult-([0-9]*).html$ index.php?name=Voting&op=poll_result&poll_id=$1 [NC,L]
RewriteRule ^Voting-pollshow-([0-9]*).html$ index.php?name=Voting&op=poll_show&poll_id=$1 [NC,L]
RewriteRule ^Voting.html$ index.php?name=Voting [NC,L]
### ЧАВО
RewriteRule ^Faq-showcat-([0-9]*)-asc.html$ index.php?name=FAQ&op=showcat&id_cat=$1&howorder=asc [NC,L]
RewriteRule ^Faq-showcat-([0-9]*)-desc.html$ index.php?name=FAQ&op=showcat&id_cat=$1&howorder=desc [NC,L]
RewriteRule ^Faq-showcat-([0-9]*)-az.html$ index.php?name=FAQ&op=showcat&id_cat=$1&howorder=az [NC,L]
RewriteRule ^Faq-showcat-([0-9]*)-za.html$ index.php?name=FAQ&op=showcat&id_cat=$1&howorder=za [NC,L]
RewriteRule ^Faq-showcat-([0-9]*).html$ index.php?name=FAQ&op=showcat&id_cat=$1 [NC,L]
RewriteRule ^Faq-send.html$ index.php?name=FAQ&op=faqsend [NC,L]
RewriteRule ^Faq.html$ index.php?name=FAQ [NC,L]
### Интернет радио
RewriteRule ^Internet_Radio.html$ index.php?name=Internet_Radio [NC,L]
### Актуальные темы
RewriteRule ^Topics.html$ index.php?name=Topics [NC,L]
### Рекомендовать
RewriteRule ^Recommend.html$ index.php?name=Recommend [NC,L]
### RSS информер
RewriteRule ^Info.html$ index.php?name=Info [NC,L]
### Поиск
RewriteRule ^Search.html$ index.php?name=Search [NC,L]
### Top пользоватилей
RewriteRule ^ShowRules.html$ index.php?name=Top_Users&op=ShowRules [NC,L]
RewriteRule ^ShowStats.html$ index.php?name=Top_Users&op=ShowStats [NC,L]
RewriteRule ^Top_Users.html$ index.php?name=Top_Users [NC,L]
### Обратная связь
RewriteRule ^Contact.html$ index.php?name=Contact [NC,L]
### Генератор паролий
RewriteRule ^Generate_password.html$ index.php?name=Genpass [NC,L]
### Главная страница
RewriteRule ^index.html$ index.php [NC,L]
RewriteRule ^([a-zA-Z0-9_]+)\.html&(.*)$ index.php?name=$1&$2 [NC]
RewriteRule ^([a-zA-Z0-9_]+)\.html$ index.php?name=$1 [NC]
Order allow,deny
allow from all
(страницы, которой нет) Подскажите, как можно исправить этот баг. Помню, год назад на форуме было много толковых ребят, куда все подевались? )