Понедельников НЕТ!
Регистрация или вход Регистрация или вход Избранное на этом сайте | Главная | Анкета | Рекомендовать | Обратная связь | В избранное | Сделать домашней
Скачать SSDForums
Скачать SSDForums 1.0.1 Скачать SSDForums 1.0.1
Скачать SSDForums 1.0.1 SP1 Скачать SSDForums 1.0.1 SP1
Скачать SSDForums 1.0.1 SP2 Скачать SSDForums 1.0.1 SP2
SSD Forums 1.0.1 SP3 only Slaed 3.5 Pro SSD Forums 1.0.1 SP3 only Slaed 3.5 Pro
SSD Forums 1.0.1 SP4-beta only Slaed 4.1 Pro SSD Forums 1.0.1 SP4-beta only Slaed 4.1 Pro
Jewelry Сase Team
Скачать Ruby Chat 0.1.1 Скачать Ruby Chat 0.1.1
Меню
Главная
Форум
Магазин цифровых товаров

Новости
Подписка на новости
Темы новостей
Добавить новость

Каталог файлов
Карта файлового архива
Публикации

Опросы
Анкета пользователя
Чат

BestMaker
Викторина
Архив новостей
Карманный оракул
Поиск по сайту с помощью Яндекс
Поиск по сайту с помощью Google
Фото дня
Для души
Погода на 3 дня
IndexCat
IndexTop
Map_Pages
Поиск по сайту









Подписка на новости
Ваше имя:
Ваш E-Mail:*
Секретный код:
Секретный код
Повторить:*
Интересное в сети

Sape — это система купли-продажи ссылок
с главных и внутренних страниц сайтов
Форум -> ЧПУ -> "ЧПУ" для seozavr.ru
"ЧПУ" для seozavr.ru
moskmii Дата: 04.03.2008, в 19:21 | Сообщение №1
moskmii
Активный участник
Пользователь №: 96
Сообщений: 184

Вообщем помудрил тут немного, но не удается!

.htaccess
Код
1
RewriteRule ^nicearticles.html                  index.php?name=nicearticles [NC]


config_rewrite.php


Код
1
"nicearticles.html",

...

"'(?<!/)index.php\?name=nicearticles'",


Надо для второго уровня доописать

там она такая: nicearticles.html?LS4q=57208
а должна быть:nicearticles-LS4q-57208.html

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Отредактированно moskmii 04.03.2008 г. в 21:34:27
Berkut Дата: 04.03.2008, в 19:57 | Сообщение №2
Berkut
Пользователь
Пользователь №: 285
Сообщений: 27

Код
1
"nicearticles-LS4q-\\1.html",


"'(?<!/)index.php\?name=nicearticles&LS4q=([0-9]*)'",
moskmii Дата: 04.03.2008, в 20:32 | Сообщение №3
moskmii
Активный участник
Пользователь №: 96
Сообщений: 184

не помогло
ссылка стала такая: site.ru/&LS4q=57208

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Отредактированно moskmii 04.03.2008 г. в 20:39:46
Serg_pnz Дата: 04.03.2008, в 20:45 | Сообщение №4
Serg_pnz
Администратор
Пользователь №: 1
Сообщений: 2242

moskmii, обрамил бы в теги код в первом посте...

Не все кальсоны с оторванными пуговицами - брюки. © Serg_pnz
"...даме водки? Это чистый спирт!" © кот Бегемот
Berkut Дата: 04.03.2008, в 21:19 | Сообщение №5
Berkut
Пользователь
Пользователь №: 285
Сообщений: 27

moskmii, давай сюда хатсес и конфиг реврайт, попробую сделать!
moskmii Дата: 04.03.2008, в 21:31 | Сообщение №6
moskmii
Активный участник
Пользователь №: 96
Сообщений: 184

Стандартная сборка, гдето скачал не помню

config_rewrite.php

Код
1
<?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",

"topics.html",
"addnews.html",
"recommend.html",
"info.html",
"contact.html",
//Документация
"pages-cat-\\1-pagenum-\\2.html",
"pages-cat-\\1.html",
"pages-\\1.html",
"pages.html",
//Голосование
"voting-pollresult-\\1.html",
"voting-pollshow-\\1.html",
"voting.html",
//Поиск
"search.html",
//SSD 1.0.1
"deletepost-id-\\1.html",
"editpost-id-\\1.html",
"theme-status-set-\\1-id-\\2.html",   
"theme-move-id-\\1.html",
"theme-open-id-\\1.html",
"theme-close-id-\\1.html",
"showtopic-topic-\\1-id-\\2.html",
"showtopic-\\1-page-\\2.html",
"newtopic-\\1.html",
"showtopic-\\1.html",
"showforum-\\1.html",
"showforum.html",
"forum.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",
"nicearticles.html",
"nicearticles-LS4q-\\1.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=Topics'",
"'(?<!/)index.php\?name=Add_News'",
"'(?<!/)index.php\?name=Recommend'",
"'(?<!/)index.php\?name=Info'",
"'(?<!/)index.php\?name=Contact'",
//Документация
"'(?<!/)index.php\?name=Pages&op=cat&id=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)index.php\?name=Pages&op=cat&id=([0-9]*)'",
"'(?<!/)index.php\?name=Pages&op=page&pid=([0-9]*)'",
"'(?<!/)index.php\?name=Pages'",
//Голосование
"'(?<!/)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=Search'",
//SSD 1.0.1
"'(?<!/)index.php\?name=Forums&op=deletepost&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=editpost&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=theme&action=status&set=([0-9]*)&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=theme&action=move&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=theme&action=open&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=theme&action=close&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=showtopic&cat=([0-9]*)&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=showtopic&id=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=newtopic&cid=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=showtopic&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=showforum&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=showforum'",
"'(?<!/)index.php\?name=Forums'",
//ЧАВО
"'(?<!/)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'",
//SEOZAVR
"'(?<!/)index.php\?name=nicearticles'",
"'(?<!/)index.php\?name=nicearticles&LS4q=([0-9]*)'",

);

?>


.htaccess
Код
1
ErrorDocument 400 http://www.mo-skm.info/
ErrorDocument 401 http://www.mo-skm.info/
ErrorDocument 403 http://www.mo-skm.info/
ErrorDocument 404 http://www.mo-skm.info/
ErrorDocument 500 http://www.mo-skm.info/
ErrorDocument 503 http://www.mo-skm.info/

ErrorDocument 400 /index.php?error=400
ErrorDocument 401 /index.php?error=401
ErrorDocument 403 /index.php?error=403
ErrorDocument 404 /index.php?error=404
ErrorDocument 500 /index.php?error=500
ErrorDocument 503 /index.php?error=503

RewriteEngine On
RewriteBase /

### Index
RewriteRule ^index.html                  index.php [NC]
### Файлы
RewriteRule ^files-new.html$               index.php?name=Files&new [NC]
RewriteRule ^files-print-([0-9]*).html$            index.php?name=Files&op=printe&id=$1 [NC]
RewriteRule ^files-view-([0-9]*)-([0-9]*).html$      index.php?name=Files&op=view&id=$1&num=$2 [NC]
RewriteRule ^files-view-([0-9]*)-word-(.*).html$      index.php?name=Files&op=view&id=$1 [NC]
RewriteRule ^files-view-([0-9]*).html$            index.php?name=Files&op=view_file&lid=$1 [NC]
RewriteRule ^files-broken-([0-9]*).html$         index.php?name=Files&op=broken&lid=$1 [NC]
RewriteRule ^files-list-([0-9]*).html$            index.php?name=Files&op=liste&num=$1 [NC]
RewriteRule ^files-list.html$               index.php?name=Files&op=liste [NC]
RewriteRule ^files-add.html$               index.php?name=Files&op=add_file [NC]
RewriteRule ^files-best-([0-9]*).html$            index.php?name=Files&best=1&num=$1 [NC]
RewriteRule ^files-best.html$               index.php?name=Files&best=1 [NC]
RewriteRule ^files-hits-([0-9]*).html$            index.php?name=Files&hits=1&num=$1 [NC]
RewriteRule ^files-hits.html$               index.php?name=Files&hits [NC]
RewriteRule ^files-([0-9]*).html$               index.php?name=Files&num=$1 [NC]
RewriteRule ^files-cat-([0-9]*)-([0-9]*).html$      index.php?name=Files&op=cat&id=$1&pagenum=$2 [NC]
RewriteRule ^files-cat-([0-9]*).html$            index.php?name=Files&op=cat&id=$1 [NC]
RewriteRule ^files.html                  index.php?name=Files [NC]
### Новости
RewriteRule ^news-topic-([0-9]*)-page-([0-9]*).html$            index.php?name=News&new_topic=$1&pagenum=$2 [NC]
RewriteRule ^news-topic-([0-9]*).html$               index.php?name=News&new_topic=$1 [NC]
RewriteRule ^news-friendsend-([0-9]*).html$            index.php?name=News&op=friendsend&sid=$1 [NC]
RewriteRule ^news-print-([0-9]*).html$         index.php?name=News&op=printpage&sid=$1 [NC]
RewriteRule ^news-view-([0-9]*)-([0-9]*).html$      index.php?name=News&op=article&sid=$1&num=$2 [NC]
RewriteRule ^news-view-([0-9]*)-word-(.*).html$      index.php?name=News&op=article&sid=$1&word=$2 [NC]
RewriteRule ^news-view-([0-9]*).html$         index.php?name=News&op=article&sid=$1 [NC]
RewriteRule ^news-list-([0-9]*).html$            index.php?name=News&op=liste&num=$1 [NC]
RewriteRule ^news-list.html$               index.php?name=News&op=liste [NC]
RewriteRule ^news-best-([0-9]*).html$         index.php?name=News&best=1&num=$1 [NC]
RewriteRule ^news-best.html$               index.php?name=News&best=1 [NC]
RewriteRule ^news-hits-([0-9]*).html$            index.php?name=News&hits=1&num=$1 [NC]
RewriteRule ^news-hits.html$               index.php?name=News&hits=1 [NC]
RewriteRule ^news-cat-([0-9]*)-([0-9]*).html$      index.php?name=News&cat=$1&num=$2 [NC]
RewriteRule ^news-cat-([0-9]*).html$            index.php?name=News&cat=$1 [NC]
RewriteRule ^news-([0-9]*).html$            index.php?name=News&num=$1 [NC]
RewriteRule ^news.html                  index.php?name=News [NC]

RewriteRule ^topics.html                  index.php?name=Topics [NC]
RewriteRule ^addnews.html                  index.php?name=Add_News [NC]
RewriteRule ^recommend.html                  index.php?name=Recommend [NC]
RewriteRule ^info.html                  index.php?name=Info [NC]
RewriteRule ^contact.html                  index.php?name=Contact [NC]

RewriteRule ^pages-cat-([0-9]*)-pagenum-([0-9]*).html$                  index.php?name=Pages&op=cat&id=$1&pagenum=$2 [NC]
RewriteRule ^pages-cat-([0-9]*).html$                  index.php?name=Pages&op=cat&id=$1 [NC]
RewriteRule ^pages-([0-9]*).html$                  index.php?name=Pages&op=page&pid=$1 [NC]
RewriteRule ^pages.html                  index.php?name=Pages [NC]

RewriteRule ^voting-pollresult-([0-9]*).html$      index.php?name=Voting&op=poll_result&poll_id=$1 [NC]
RewriteRule ^voting-pollshow-([0-9]*).html$      index.php?name=Voting&op=poll_show&poll_id=$1 [NC]
RewriteRule ^voting.html               index.php?name=Voting [NC]

RewriteRule ^search.html               index.php?name=Search [NC]
### SSD 1.0.1
RewriteRule ^deletepost-id-([0-9]*).html$               index.php?name=Forums&op=deletepost&id=$1 [NC]
RewriteRule ^editpost-id-([0-9]*).html$               index.php?name=Forums&op=editpost&id=$1 [NC]
RewriteRule ^theme-status-set-([0-9]*)-id-([0-9]*).html$               index.php?name=Forums&op=theme&action=status&set=$1&id=$2 [NC]
RewriteRule ^theme-move-id-([0-9]*).html$               index.php?name=Forums&op=theme&action=move&id=$1 [NC]
RewriteRule ^theme-open-id-([0-9]*).html$               index.php?name=Forums&op=theme&action=open&id=$1 [NC]
RewriteRule ^theme-close-id-([0-9]*).html$               index.php?name=Forums&op=theme&action=close&id=$1 [NC]
RewriteRule ^showtopic-topic-([0-9]*)-id-([0-9]*).html$               index.php?name=Forums&op=showtopic&cat=$1&id=$2[NC]
RewriteRule ^showtopic-([0-9]*)-page-([0-9]*).html$               index.php?name=Forums&op=showtopic&id=$1&pagenum=$2 [NC]
RewriteRule ^newtopic-([0-9]*).html$               index.php?name=Forums&op=newtopic&cid=$1 [NC]
RewriteRule ^showtopic-([0-9]*).html$               index.php?name=Forums&op=showtopic&id=$1 [NC]
RewriteRule ^showforum-([0-9]*).html$               index.php?name=Forums&op=showforum&id=$1 [NC]
RewriteRule ^showforum.html$               index.php?name=Forums&op=showforum [NC]
RewriteRule ^forum.html               index.php?name=Forums [NC]
### ЧАВО
RewriteRule ^faq-showcat-([0-9]*)-asc.html$               index.php?name=FAQ&op=showcat&id_cat=$1&howorder=asc [NC]
RewriteRule ^faq-showcat-([0-9]*)-desc.html$               index.php?name=FAQ&op=showcat&id_cat=$1&howorder=desc [NC]
RewriteRule ^faq-showcat-([0-9]*)-az.html$               index.php?name=FAQ&op=showcat&id_cat=$1&howorder=az [NC]
RewriteRule ^faq-showcat-([0-9]*)-za.html$               index.php?name=FAQ&op=showcat&id_cat=$1&howorder=za [NC]
RewriteRule ^faq-showcat-([0-9]*).html$               index.php?name=FAQ&op=showcat&id_cat=$1 [NC]
RewriteRule ^faq-send.html$               index.php?name=FAQ&op=faqsend [NC]
RewriteRule ^faq.html               index.php?name=FAQ [NC]

RewriteRule ^nicearticles.html                  index.php?name=nicearticles [NC]
Berkut Дата: 04.03.2008, в 22:00 | Сообщение №7
Berkut
Пользователь
Пользователь №: 285
Сообщений: 27

Вобщем постамил я на локалке, чуть дописал, вроде работает! Выкладываю в архиве рабочий вариант. Пользуйся на здоровье!!! Только потом отпишись о резутатах, помогло или нет.

Прикрепленные файлы:

Скачать: 2.19 KB
moskmii Дата: 04.03.2008, в 23:14 | Сообщение №8
moskmii
Активный участник
Пользователь №: 96
Сообщений: 184

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

Вы не можете ответить в тему анонимно, пожалуйста, войдите или зарегистрируйтесь!


Реклама
Главная | Форум | Новости | Подписка на новости | Темы новостей | Добавить новость | Каталог файлов | Карта файлового архива | Публикации | Опросы | Анкета пользователя | Чат | BestMaker | Викторина | Архив новостей | Карманный оракул | Поиск по сайту с помощью Яндекс | Поиск по сайту с помощью Google | Фото дня | Для души | Погода на 3 дня | IndexCat | IndexTop | Map_Pages | Весь Оракул

Rambler's Top100

Генерация страницы: 0.259 сек. и 17 запросов к базе данных за 0.020 сек.
Web site engine code is Copyright © 2006 by SLAED CMS. All rights reserved.