Чтение RSS каналов

Форум

Открыть Ответить

ЧПУ для Slaed 2.5, 2.6 ?

0

0
1
30.09.2009 22:23:40
Здравствуйте. Подскажите пожалуйста, где можно найти работоспособный ЧПУ для выше упомянутых версий?

В своё врем скачивал ЧПУ, вроде всё работало, но потом заметил одну деталь. При увеличении кол-ва комментариев, они начинают выводиться на 2, 3 страницы и переход по этим страницам невозможен (не прописаны ссылки).
3.66

3.66
3
01.10.2009 10:53:18
bovan, перелистывание страниц новостей после установки данного ЧПУ сопровождается перекидыванием на главную Смайл - 09

Мне кажется очень много людей держат свои сайты именно на предыдущей ветке (2.5; 2.6) и , возможно, кто-нибудь устанавливал себе ЧПУ...не жадничайте
3.66

3.66
4
01.10.2009 13:19:3501.10.2009 13:23:04
Мне для полного счастья и надо только лишь, чтобы комментарии нормально пересчелкивались. Но я не знаю какие там строчки вписать. Вся ЧПУ представлена двумя файлами: 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'",
);

?>


и .htaccess? cодержимое:
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


Ссылка на переключение комментария на 2 страницу без ЧПУ выглядит:
http://xxxxx.ru/index.php?name=News&op=article&sid=77&pagenum=2
а с ЧПУ выдаёт: http://xxxxx.ru/News-view-77.html&pagenum=2(страницы, которой нет) Подскажите, как можно исправить этот баг. Помню, год назад на форуме было много толковых ребят, куда все подевались? )
3.66

3.66
5
02.10.2009 16:45:4302.10.2009 17:28:21
Usatyi1986, вам конкретно для новостей?

.htaccess
RewriteRule ^newscomment-([0-9]*)-page-([0-9]*).html$ index.php?name=News&op=article&sid=$1&pagenum=$2 [NC]


config_rewrite


'newscomment-\1-page-\2.html',


и

"'(?<!/)index.php\?name=News&op=article&sid=([0-9]*)&pagenum=([0-9]*)'",
3.69

3.69
6
02.10.2009 21:38:5102.10.2009 21:39:50

Мне кажется очень много людей держат свои сайты именно на предыдущей ветке (2.5; 2.6) и , возможно, кто-нибудь устанавливал себе ЧПУ...не жадничайте



Пробуйте...

СКАЧАТЬ

Но сие доморощенное и как говорится плохо пропечёное - многовато правил - это не есть хорошо - может вызвать нагрузку на сервер при большой посещаемости.


Версия системы: SLAED CMS 2.6 Lite
Версия PHP: PHP 5
3.69

3.69
7
03.10.2009 13:04:17
septron, вы золото, спасибо большое. Первого сообщения вполне достаточно Смайл - 04
3.66

3.66
Открыть Ответить
Хотите опробовать SLAED CMS в действии?

Технологии

PHP MySQL HTML 5 CSS 3 jQuery jQuery UI

Контакты

  • D-49179, Deutschland
    Ostercappeln, Im Siek 6
  • +49 176 61966679

  • https://slaed.net
Идеи и предложения
Обратная связь