# #-----[ AVAA ]------------------------------------------ # .htaccess # #----- Mikäli foorumisi on asennettu sivuston juurihakemistoon # #-----[ LISÄÄ ]------------------------------------------ # RewriteEngine On RewriteBase / ######################################################### # PHPBB SEO REWRITE RULES # ######################################################### # AUTHOR : dcz http://www.phpbb-seo.com/ # STARTED : 01/2006 ##################################################### RewriteRule ^.*-c([0-9]+)\.html$ /index.php?c=$1 [QSA,L] RewriteRule ^.*-f([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L] RewriteRule ^.*-f([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L] RewriteRule ^.*-t([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L] RewriteRule ^.*-t([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L] RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L] RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L] # #----- Mikäli foorumisi on asennettu kansioon, Korvaa koodissa "phpbb" kansiosi nimellä # #-----[ LISÄÄ ]------------------------------------------ # RewriteEngine On RewriteBase / ######################################################### # PHPBB SEO REWRITE RULES # ######################################################### # AUTHOR : DCZ http://www.phpbb-seo.com/ # STARTED : 01/2006 ##################################################### RewriteRule ^phpbb/.*-c([0-9]+)\.html$ /phpbb/index.php?c=$1 [QSA,L] RewriteRule ^phpbb/.*-f([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L] RewriteRule ^phpbb/.*-f([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L] RewriteRule ^phpbb/.*-t([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L] RewriteRule ^phpbb/.*-t([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1 [QSA,L] RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L] RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/profile.php?mode=viewprofile&u=$1 [QSA,L] # #-----[ KOPIOI ]-------------------------------------------------- # Kopioi phpbb_seo/*.* kansioon phpbb_seo/*.* # #-----[ AVAA ]------------------------------------------ # common.php # #-----[ ETSI ]------------------------------------------ # if (file_exists('install') || file_exists('contrib')) { message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib'); } # #-----[ LISÄÄ ENNEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN include($phpbb_root_path . 'phpbb_seo/phpbb_seo_class.'.$phpEx); $phpbb_seo = new phpbb_seo(); // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ AVAA ]------------------------------------------ # index.php # #-----[ ETSI ]------------------------------------------ # if (isset($display_categories[$cat_id]) && $display_categories[$cat_id]) { # #-----[ LISÄÄ JÄLKEEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN $phpbb_seo->seo_url['cat'][$cat_id] = $phpbb_seo->format_url($category_rows[$i]['cat_title'], $phpbb_seo->seo_static['cat']); // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ ETSI ]------------------------------------------ # if ( $is_auth_ary[$forum_id]['auth_view'] ) { # #-----[ LISÄÄ JÄLKEEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN if ( !isset($phpbb_seo->seo_url['forum'][$forum_id]) ) { $phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_data[$j]['forum_name'], $phpbb_seo->seo_static['forum']); } // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ AVAA ]------------------------------------------ # posting.php # #-----[ ETSI ]------------------------------------------ # $forum_name = $post_info['forum_name']; # #-----[ LISÄÄ JÄLKEEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN $phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_name, $phpbb_seo->seo_static['forum']); // www.phpBB-SEO.com SEO TOOLKIT EN # #-----[ AVAA ]------------------------------------------ # viewforum.php # #-----[ ETSI ]------------------------------------------ # // // If the query doesn't return any rows this isn't a valid forum. Inform // the user. // if ( !($forum_row = $db->sql_fetchrow($result)) ) { message_die(GENERAL_MESSAGE, 'Forum_not_exist'); } # #-----[ LISÄÄ JÄLKEEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN $phpbb_seo->seo_url['forum'][$forum_id] = $phpbb_seo->format_url($forum_row['forum_name'], $phpbb_seo->seo_static['forum']); // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ ETSI ]------------------------------------------ # if( ( $replies + 1 ) > $board_config['posts_per_page'] ) { # #-----[ LISÄÄ ENNEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN $phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url($topic_title); // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ AVAA ]------------------------------------------ # viewtopic.php # #-----[ ETSI ]------------------------------------------ # if ($post_id) { $start = floor(($forum_topic_data['prev_posts'] - 1) / intval($board_config['posts_per_page'])) * intval($board_config['posts_per_page']); } # #-----[ LISÄÄ JÄLKEEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN $phpbb_seo->seo_url['forum'][$forum_topic_data['forum_id']] = $phpbb_seo->format_url($forum_name, $phpbb_seo->seo_static['forum']); // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ ETSI ]------------------------------------------ # if ( count($orig_word) ) { $topic_title = preg_replace($orig_word, $replacement_word, $topic_title); } # #-----[ LISÄÄ JÄLKEEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN $phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url($topic_title); // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ AVAA ]------------------------------------------ # includes/functions.php # #-----[ ETSI ]------------------------------------------ # #function make_jumpbox($action, $match_forum_id = 0) #{ global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID; # #-----[ LISÄÄ JÄLKEEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN global $phpbb_seo; // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ ETSI ]------------------------------------------ # $nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array ( 'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']), 'title' => $forum_rows[$j]['forum_name'] ); # #-----[ KORVAA SEURAAVALLA ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN if ( !isset($phpbb_seo->seo_url['forum'][$forum_rows[$j]['forum_id']]) ) { $phpbb_seo->seo_url['forum'][$forum_rows[$j]['forum_id']] = $phpbb_seo->format_url($forum_rows[$j]['forum_name'], $phpbb_seo->seo_static['forum']); } $nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array ( // 'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']), 'url' => $phpbb_seo->seo_url['forum'][$forum_rows[$j]['forum_id']] . $phpbb_seo->seo_delim['forum'] . $forum_rows[$j]['forum_id'] . $phpbb_seo->seo_ext['forum'], 'title' => $forum_rows[$j]['forum_name'] ); // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ AVAA ]------------------------------------------ # search.php # #-----[ ETSI ]------------------------------------------ # for($i = 0; $i < count($searchset); $i++) { # #-----[ LISÄÄ JÄLKEEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN $topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $searchset[$i]['topic_title']) : $searchset[$i]['topic_title']; if ( !isset($phpbb_seo->seo_url['topic'][$searchset[$i]['topic_id']]) ) { $phpbb_seo->seo_url['topic'][$searchset[$i]['topic_id']] = $phpbb_seo->format_url($topic_title); } if ( !isset($phpbb_seo->seo_url['forum'][$searchset[$i]['forum_id']]) ) { $phpbb_seo->seo_url['forum'][$searchset[$i]['forum_id']] = $phpbb_seo->format_url($searchset[$i]['forum_name'], $phpbb_seo->seo_static['forum']); } // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ ETSI ]------------------------------------------ # $topic_title = $searchset[$i]['topic_title']; # #-----[ KORVAA SEURAAVALLA ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN // Moved above //$topic_title = $searchset[$i]['topic_title']; // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ ETSI ]------------------------------------------ # $topic_title = preg_replace($orig_word, $replacement_word, $topic_title); # #-----[ KORVAA SEURAAVALLA ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN // Moved above //$topic_title = preg_replace($orig_word, $replacement_word, $topic_title); // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ ETSI ]------------------------------------------ # if ( count($orig_word) ) { $topic_title = preg_replace($orig_word, $replacement_word, $searchset[$i]['topic_title']); } # #-----[ KORVAA SEURAAVALLA ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN // Moved above //if ( count($orig_word) ) //{ // $topic_title = preg_replace($orig_word, $replacement_word, $searchset[$i]['topic_title']); //} // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ AVAA ]------------------------------------------ # includes/sessions.php # #-----[ ETSI ]------------------------------------------ # function append_sid($url, $non_html_amp = false) { global $SID; # #-----[ LISÄÄ JÄLKEEN, UUDELLE RIVILLE ]------------------------------------------ # // www.phpBB-SEO.com SEO TOOLKIT BEGIN global $phpbb_seo; $url = $phpbb_seo->url_rewrite($url, $non_html_amp); // www.phpBB-SEO.com SEO TOOLKIT END # #-----[ AVAA ]------------------------------------------ # templates/subSilver/overall_footer.tpl # #-----[ ETSI ]------------------------------------------ # Powered by phpBB © 2001, 2005 phpBB Group # #-----[ ETSI RIVILTÄ ]------------------------------------------ #
{TRANSLATION_INFO} # #-----[ LISÄÄ JÄLKEEN, SAMALLE RIVILLE]------------------------------------------ #
phpBB SEO # #-----[ AVAA ]------------------------------------------ # # phpbb_seo/phpbb_seo_class.php # #-----[ ETSI ]------------------------------------------ # $url = str_replace (array('ö','Ö'), 'oe', $url); $url = str_replace (array('ä','Ä'), 'ae', $url); $url = str_replace (array('ü','Ü'), 'ue', $url); # #-----[ KORVAA SEURAAVALLA ]------------------------------------------ # $url = str_replace (array('ö','Ö'), 'o', $url); $url = str_replace (array('ä','Ä'), 'a', $url); $url = str_replace (array('ü','Ü'), 'u', $url); # #-----[ AVAA ]------------------------------------------ # # robots.txt # #----- Mikäli foorumisi on asennettu sivuston juurihakemistoon # #-----[ LISÄÄ ]------------------------------------------ # User-agent: * Disallow: viewtopic.php Disallow: viewforum.php Disallow: index.php? Disallow: posting.php Disallow: groupcp.php Disallow: search.php Disallow: login.php Disallow: privmsg.php Disallow: post # #----- Mikäli foorumisi on asennettu kansioon, Korvaa koodissa "phpbb" kansiosi nimellä # #-----[ LISÄÄ ]------------------------------------------ # User-agent: * Disallow: /phpbb/viewtopic.php Disallow: /phpbb/viewforum.php Disallow: /phpbb/index.php? Disallow: /phpbb/posting.php Disallow: /phpbb/groupcp.php Disallow: /phpbb/search.php Disallow: /phpbb/login.php Disallow: /phpbb/privmsg.php Disallow: /phpbb/post # #-----[ TALLENNA KAIKKI TIEDOSTOT ]------------------------------------------ # # EoM