ÇÖZÜM:404 hatası alanlar (0.4.0RC2a), eklentinin son sürümün gazabı var. class içindeki pek çok açıklama silinmiş ve bazı yerler kısıtlanmış.
404 hatası alanlar, .htaccess değişikliğimi ekledikten sonra (yukarılarda yazdığım ile aynı) class dosyasında (phpbb_seo/phpbb_seo_class.php) şu değişikliği yapsınlar:
.htaccess içeriğine eklenecek
- Kod: Tümünü seç
# You could need to un-comment the following line
# Options +FollowSymlinks
RewriteEngine On
# ALEXIS pasif yap dedi :P
#RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^index\.html$ /index.php [QSA,L]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?/?$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES && TOPIC WITHOUT FORUM URLS
RewriteRule ^(annonces/)?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$2&start=$4 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$1 [QSA,L]
# THE TEAM
RewriteRule ^the-team\.html$ /memberlist.php?mode=leaders [QSA,L,NC]
# END PHPBB PAGES
#####################################################
[ AÇ ]phpbb_seo/phpbb_seo_class.php
[ BUL ]- Kod: Tümünü seç
$this->seo_opt = array( 'url_rewrite' => false,
[ DEĞİŞTİR ]- Kod: Tümünü seç
$this->seo_opt = array( 'url_rewrite' => true,
Bu da önceki Türkçe yamamız, denedim hala çalışıyor:
Bu da Türkçe karakter yamam:
- Kod: Tümünü seç
[ OPEN ]
phpbb_seo/phpbb_seo_class.php
[ FIND ]
$this->seo_path['phpbb_script'] = $script_path;
AFTER ADD
//-- [+] Turkish fix ----------------------------------------------------
//-- add
//
// --> Custom str_Replace arrays, to handle special cases properly
$this->seo_opt['url_find'] = array(
utf8_chr(286),utf8_chr(287), // g
utf8_chr(304),utf8_chr(305), // i
utf8_chr(350),utf8_chr(351), // s
);
$this->seo_opt['url_replace'] = array('g', 'g', 'i', 'i','s', 's');
//
//-- [-] Turkish fix ----------------------------------------------------
[ FIND ]
$url = preg_replace('`\[.*\]`U','',$url);
[ AFTER ADD ]
//-- [+] Turkish fix ----------------------------------------------------
//-- add
//
$url = str_replace( $this->seo_opt['url_find'], $this->seo_opt['url_replace'], $url );
//
//-- [-] Turkish fix ----------------------------------------------------