Решил сделать ЧПУ.
1. При добавлении в .htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\..+$
RewriteRule . /index.php [L]
</IfModule>Форум выключается с 505 ошибкой.
2. При добавлении в /admin/sources/base/core.php
static public function makeSeoTransliterate( $text )
{
if ( IPB_USE_SEO_TRANSLIT )
{
$text = urldecode($text);
$text = str_replace( array('а','б','в','г','д','е','ё','ж','з','и','й','к','л','м','н','о','п','р','с','т','у','ф','х','ц','ч','ш','щ','э','ю','я','ы','ь','ъ'), array('a','b','v','g','d','e','e','zh','z','i','i','k','l','m','n','o','p','r','s','t','u','f','h','c','ch','sh','sh','a','ju','ja','i','',''), $text);
/* Fix */
$text = preg_replace( array('#[^a-z0-9-]#', '#-{2,}#'), array('', '-'), $text );
$text = trim($text, '-');
/* /Fix */
$text = urlencode($text);
}
return $text;
}Форум вообще отключается...
3. При изменении этих строчек в initdata.php
define( 'IPB_USE_SEO_TRANSLIT', TRUE ); define( 'IPB_USE_ONLY_ID_FURL', FALSE );
Ничего не происходит.
В чем проблема?
Как мне сделать адреса подобно http://mysite.ru/topic8105.html
А не
http://mysite.ru/index.php?/topic/373-%d1%87%d0%b5%d0%b3%d0%be-%d0%b2%d0%b0%d0%bc-%d0%bd%d0%b5-%d1%85%d0%b2%d0%b0%d1%82%d0%b0%d0%b5%d1%82/page__pid__1037#entry1037






Отправлено 17 Август 2011 - 01:46
