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

Форум

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

Люди есть ли у кого переделаный КОНФ фаил на ЧПУ в 2.6 ???

0

0
1
08.03.2010 20:38:31
Я думаю что у меня не доделана до конча КОНФ фаил... поетому не делает ссылки так: News-article-13.html


а не как сейчас..
index.php?name=News&op=article&sid=13


короче хотела бы чтоб были так :)

News-article-13.html
3.71

3.71
2
09.03.2010 13:00:20
так надо сделать только в новостях или во всей системе ?
4.05

4.05
3
09.03.2010 17:52:29
ну мне бы и новостей хватило 2.6 лите версия :)
3.71

3.71
4
09.03.2010 19:51:20
У Вас вообще ЧПУ включен!?
4

4
5
09.03.2010 20:41:02
config_rewrite.php:

<?php
if (!defined("FUNC_FILE")) die("Illegal File Access");

$rewrite_out = array(
"System.html",
"Services.html",
"Reklame.html",
"Contact.html",
"Recommend.html",
"Search.html",
"Topics.html",
"Add_News.html",
"Rules.html",
"Info.html",
"News.html",
"news-\\2-\\3.html",
"news-\\2.html",
"news-topic-\\2-\\3.html",
"news-topic-\\2.html",
"news-cat-\\2-\\3.html",
"news-cat-\\2.html",
"news-\\2-\\3.html"
);

$rewrite_in = array(
"'(?<!/)index.php\?name=System'",
"'(?<!/)index.php\?name=Services'",
"'(?<!/)index.php\?name=Reklame'",
"'(?<!/)index.php\?name=Contact'",
"'(?<!/)index.php\?name=Recommend'",
"'(?<!/)index.php\?name=Search'",
"'(?<!/)index.php\?name=Topics'",
"'(?<!/)index.php\?name=Add_News'",
"'(?<!/)index.php\?name=Rules'",
"'(?<!/)index.php\?name=Info'",
"'(?<!/)index.php\?name=News'",
"'(?<!/)index.php\?name=([newsNews]+)&op=article&sid=([0-9]+)&pagenum=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&op=article&sid=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&new_topic=([0-9]+)&pagenum=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&new_topic=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&op=cat&catid=([0-9]+)&pagenum=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&op=cat&catid=([0-9]+)'",
"'(?<!/)index.php\?name=([newsNews]+)&op=([a-z]+)&sid=([0-9]+)'"
);

?>


.htaccess:

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^index.html index.php [NC,L]
RewriteRule ^([a-zA-Z_]+)\.html$ index.php?name=$1 [NC,L]
RewriteRule ^news-([0-9]+).html$ index.php?name=News&op=article&sid=$1 [NC,L]
RewriteRule ^news-([0-9]+)-([0-9]+).html$ index.php?name=News&op=article&sid=$1&pagenum=$2 [NC,L]
RewriteRule ^news-topic-([0-9]+).html$ index.php?name=News&new_topic=$1 [NC,L]
RewriteRule ^news-topic-([0-9]+)-([0-9]+).html$ index.php?name=News&new_topic=$1&pagenum=$2 [NC,L]
RewriteRule ^news-cat-([0-9]+).html$ index.php?name=News&op=cat&catid=$1 [NC,L]
RewriteRule ^news-cat-([0-9]+)-([0-9]+).html$ index.php?name=News&op=cat&catid=$1&pagenum=$2 [NC,L]
RewriteRule ^news-(printpage|friendsend)-([0-9]+).html$ index.php?name=News&op=$1&sid=$2 [NC,L]
3.97

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

Технологии

PHP MySQL HTML 5 CSS 3 jQuery jQuery UI

Контакты

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

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