mod revrite SEO

Search Engine Optimization, Search Engine Friendly URL a Search Engine Marketing a podobne

Moderátor: Moderátori

mod revrite SEO

Poslaťod WlaDo13 » Uto Aug 19, 2008 1:57 pm

Pls odkial to mam instalovat??

Kód: Vybrať všetko
##############################################################
## MOD Title:       phpBB SEO Advanced mod Rewrite
## MOD Author:       dcz <n/a> http://www.phpbb-seo.com/
## MOD Description:    This mod will URL rewrite phpBB URLs, injecting
##         categories, forums and topic titles in their URLS.
##          Please read the author notes BEFORE using this mod.
##          Check http://www.phpbb-seo.com/boards/advanced-mod-rewrite/advanced-seo-url-vt43.html
##          for the latest version or to get help with this MOD.
##
## MOD Version:    0.2.4
##
## Installation Level:    (ADVANCED)
## Installation Time:    10 Minutes
## Files To Edit:    (10)
##         .htaccess,
##         common.php,
##         index.php,
##         posting.php,
##         viewforum.php,
##         viewtopic.php,
##         search.php,
##         includes/functions.php,
##         includes/sessions.php,
##         overall_footer.tpl
## Included Files:   (2)
##         phpbb_seo/phpbb_seo_class.php
##         phpbb_seo/.htaccess
##
##############################################################
## Author Notes:
## _____________
##
## This is the phpBB SEO Advanced mod_rewrite core.
## Please note that this version will not inject topic titles in post's URLS. This is to make it easier
## to disallow them with our robots.txt file, since those are duplicates any way.
##
## This mod requires running Apache Server with mod_Rewrite module loaded, or IIS server running isapi_rewrite.
##
## This mod requires the Cyber Alien guest session mod ( http://www.phpbbstyles.com/viewtopic.php?t=357 )
## or any other SID removal method you may prefer.
##
## With this mod, phpBB URL will transformed this way :
##
##   index.php?c=xx               =>   cat-title-cxx.html
##
##   viewforum.php?t=xx            =>   forum-title-fxx.html
##
##   viewforum.php?t=xx&start=xx         =>   forum-title-fxx-yy.html
##
##   viewtopic.php?t=xx               =>   topic-title-txx.html
##
##   viewtopic.php?t=xx&start=xx         =>   topic-title-txx-yy.html
##
##   viewtopic.php?p=xx               =>   postxx.html
##
##   profile.php?mode=viewprofile&u=xx    =>   memberxx.html
##
## This mod has nothing in common with other phpBB mod rewrite, it will perform the URL rewriting
## without using ob_start() or adding any SQL. It is thus faster and not messing anymore with Gun-Zip
## or with the html link format, and will not output any pagination duplicates.
##
## The process is optimized, titles are formatted once, even if the url is called many times.
##
## Short URL feature : everything in topic title in between "[" and "]" won't be injected in URL.
##   Example :
##   This topic title : "[SOMETHING] The Topic Title" will correspond to this URL : "the-topic-title-vtxx.html"
##
## Bad Title handling :
##   Example :
##   This topic title : """"??Véry bâd tďtle handling"[hehe]!!!" will correspond to this URL : "very-bad-title-handling-vtxx.html"
##
## WARNING : Topic title injection in URL can be hard to deal with depending on the type of subjects your
## forum is about. In most cases phpBB SEO recommend the use of the phpBB SEO mixed mod Rewrite instead.
## Please read : http://boards.phpbb-seo.com/phpbb-seo-toolkit/phpbb-seo-mod-rewrites-vt66.html
##
## This mod is and will be compatible to all phpBB SEO modules, specific install instructions may apply.
## phpBB SEO will provide patches to allow for other URL standards support upon request,
## so that everyone can take advantage of the phpBB mod Rewrites enhancement without jeopardising his Page-Ranking.
##
##
## Char-sets :
## ___________
##
## This version supports all the char-sets supported by htmlentities() : http://www.php.net/htmlentities
## You will need to edit phpbb_seo/phpbb_seo_class.php in case you are not using iso-8859-1 :
## In such case look for :
##         $this->encoding = "iso-8859-1";
##
## And change it to the char-set you are using, using the htmlentities() char-set table bellow :
## ___________________________________________________________________________________________________
##
## Charset      Aliases         Description
## ___________________________________________________________________________________________________
## ISO-8859-1      ISO8859-1      Western European, Latin-1
##
## ISO-8859-15      ISO8859-15      Western European, Latin-9.
##                   Adds the Euro sign, French and Finnish letters
##                   missing in Latin-1(ISO-8859-1).
## UTF-8               ASCII compatible multi-byte 8-bit Unicode.
##
## cp866      ibm866, 866      DOS-specific Cyrillic char-set.
##                   This char-set is supported in 4.3.2.
##
## cp1251      Windows-1251,      Windows-specific Cyrillic char-set.
##          win-1251,1251      This char-set is supported in 4.3.2.
##
## cp1252      Windows-1252,1252   Windows specific char-set for Western European.
##
## KOI8-R      koi8-ru, koi8r      Russian. This char-set is supported in 4.3.2.
##
## BIG5         950         Traditional Chinese, mainly used in Taiwan.
##
## GB2312      936         Simplified Chinese, national standard character set.
##
## BIG5-HKSCS               Big5 with Hong Kong extensions, Traditional Chinese.
##
## Shift_JIS      SJIS,932      Japanese.
##
## EUC-JP      EUCJP         Japanese.
## ___________________________________________________________________________________________________
##
## For all these char-set, the mod rewrite will only inject the possible ASCII Chars
## ( after removing all accents ) available in the titles.
##
## For example : "[non ASCII chars] Design" will be formated this way : "design".
##
## In case you're using an unsupported char-set, you can keep the old method.
##
##
## Migration :
## ___________
##
## If you are migration, eg if your forum is already indexed using different URLs,
## you'll have to use another robots.txt and install the zero duplicate.
## The migrating procedure will allow you to migrate and keep your previously indexed pages.
## Older links will be HTTP 301 redirected to the new ones. It is rather simple, but the solution depends on cases.
## Let's meet in the Advanced mod rewrite forum ( http://www.phpbb-seo.com/boards/advanced-mod-rewrite-vf46/ ).
##
##
####
## 0.0.1 => 0.0.2 Update : Required changes to be found in contrib/old_updates/0.0.1_0.0.2_Advanced_Update.txt
## 0.0.2 => 0.2.0 Update : Required changes to be found in contrib/old_updates/0.0.2_0.2.0_Advanced_Update.txt
## 0.2.0 => 0.2.2 Update : Required changes to be found in contrib/old_updates/0.2.0_0.2.2_Advanced_Update.txt
## 0.2.2 => 0.2.4 Update : Required changes to be found in contrib/0.2.2_0.2.4_Advanced_Update.txt
####
##
## LICENSE:
##
## We, phpBB SEO, have decided to license this mod under the RPL Licence ( http://www.opensource.org/licenses/rpl.php )
## which states you cannot remove the phpBB SEO credits and if you make any modifications you have to resubmit them
## to phpBB SEO for inclusion into this package again. You can read the license for yourself for further info.
##
## You can of course use this mod without any more limitations than those stated here and in the licence.
##
## At least a link ( http://www.phpbb-seo.com/ ) is required on every web site using this mod, or,
## if your web site does not comply with what phpBB SEO can link to, one proven link within a
## general audience hard link directory of your choice not already listing phpBB SEO.
## For more details about possible exceptions, please contact a phpBB SEO administrator (primarily SeO or dcz).
##
## Failure to comply will jeopardize support and developments.
##
##############################################################
## MOD History:
##
##   2007-04-25 - 0.2.4
##      - Optimised the format_url method (once more) for up to 30% faster title formating!
##        and universal char-set solution.
##      - added a bit more support for multi paths set ups
##      - Optimized the RewriteRules, for a faster and more strict handling.
##   2007-02-03 - 0.2.2
##      - Got rid of the PHPBB_URL buggy constant
##      - added a bit of support for multi paths
##   2006-12-26 - 0.2.0
##      - New URL rewriting architecture, the code is rewritten from scratch, fully OO now for a better integration.
##        Now supports unlimited mods and modules URL rewriting.
##      - Optimized the format_url() function, just doing the same job faster (again).
##   2006-06-20 - 0.0.2
##      - Will NOT inject topic titles in post(viewtopic.php?p=xx) URLs, to make it possible to disallow
##        with robots.txt. Will be mod rewritten in a static manner instead.
##      - Optimized the format_url() function, just doing the same job faster.
##      - Added highlight fix in search.php adn fixed a small bug in search results (results posts)
##      - Optimized the append_sid() filtering.
##
##   2006-05-25 - 0.0.1
##      - First Beta Version
##
##   2006-03-01 - 0.0.0
##      - Initial beta testing phase
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################


#
#-----[ DIY INSTRUCTIONS ]--------------------------------------------------
#
______________________________
NOTE : VERSION UPDATE CHECKING
______________________________
if you are using XS mod ( http://www.phpbbstyles.com/viewtopic.php?t=356 ), by the way you should,
Upload :

contrib/xs_advanced_mod_rewrite.cfg

in your forum's admin/ folder, XS mod version checking will be extended to this mod.


_______________________
0.2.2 => 0.2.4 Update :
_______________________

To update from 0.2.2, just only apply the code changes in contrib/0.2.2_0.2.4_Advanced_Update.txt.

In case you are using the version update checking, you'll need to upload again :

contrib/xs_advanced_mod_rewrite.cfg

in your forum's admin/ folder, to make sure version update will look for the correct version.

________________________________________
>>>>   INSTALLATION INSTRUCTION    <<<<<
________________________________________

By Default, this mod will get rid of index.php for phpBB's index.
You can change this in phpbb_seo/phpbb_seo_class.php if you prefer.
Look for :

         'index' => ''

And replace with  :

         'index' => 'index.html'

or whatever you prefer.
This is mostly useful if you're running a portal in the folder where phpBB is installed.
You'll have to un-comment (get rid of the '#' at the beginning of the line) the FORUM INDEX rewriterule in the following .htaccess.
Remember you have to change index\.html in case you changed the above index.html to something else.


_________
WARNING :
_________

Do not forget to set up your char-set as mentioned in the author note above, in case you're not using iso-8859-1.

________________
NOTE : .htaccess
________________

You'll find ready to use .htaccess files in contrib/htaccess/english/
If your forum is not installed in the domain's root, you will have to
open the .htaccess and replace 'phpbb' with the phpBB's folder name.

Put the .htaccess file at the root level of your server.
If you have any other rewriterules there, just put the rules in it (be careful about the order!).
Should be after the forum rewriterules.
Please take a look at : http://www.phpbb-seo.com/boards/seo-principles/locking-the-www-in-urls-vt30.html
to find out how to lock the use (or un use) of the www prefix in your domain's url.
This is a major Search Engine Optimisation issue to take care of the www prefix.

___________________________________________

>>-->> Here is the .htaccess content <<--<<
___________________________________________

Two possibilities : If your phpBB is installed in root then use the proper .htaccess code without changing it.
If your phpBB is installed in a folder, replace 'phpBB' with the name of the folder that contains your phpBB forum.
According to the specific hoster you are using, you might have to get rid of the "/" at the beginning
of the right part of each rewriterules eg : RewriteRule ^.+-c([0-9]+)\.html$ index.php?c=$1 [QSA,L]

NOTE : These two lines should only be added if not already done in the .htaccess
________________________
RewriteEngine On
RewriteBase /
________________________

______
OPEN :
______


.htaccess

____________________________________________________
>>> YOUR FORUM IS INSTALLED AT THE DOMAIN'S ROOT <<<
____________________________________________________
ADD :
____________________________________________________

# You could need to un-comment the following line
# Options +FollowSymlinks
RewriteEngine On
RewriteEngine On
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,NC]
# FORUM PROTECTION RULE
# RewriteRule ^[a-z0-9_-]+/([^/]+\.html)$ /index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^[a-z0-9_-]*-c([0-9]+)\.html$ /index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^[a-z0-9_-]*-t([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################

___________________________________________
>>> YOUR FORUM IS INSTALLED IN A FOLDER <<<
___________________________________________
ADD :
___________________________________________

# You could need to un-comment the following line
# Options +FollowSymlinks
RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpbb/index\.html$ /phpbb/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^phpbb/[a-z0-9_-]+/([^/]+\.html)$ /phpbb/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^phpbb/[a-z0-9_-]*-c([0-9]+)\.html$ /phpbb/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^phpbb/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^phpbb/[a-z0-9_-]*-f([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^phpbb/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^phpbb/[a-z0-9_-]*-t([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################

#
#-----[ COPY ]--------------------------------------------------
#

copy phpbb_seo/*.* to phpbb_seo/*.*

#
#-----[ OPEN ]------------------------------------------
#

common.php

#
#-----[ FIND ]------------------------------------------
#

if (file_exists('install') || file_exists('contrib'))
{
   message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib');
}

#
#-----[ BEFORE, ADD ]------------------------------------------
#

// 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



#
#-----[ OPEN ]------------------------------------------
#


index.php

#
#-----[ FIND ]------------------------------------------
#

      if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
      {

#
#-----[ AFTER, ADD ]------------------------------------------
#
         // www.phpBB-SEO.com SEO TOOLKIT BEGIN
         if ( !isset($phpbb_seo->seo_url['cat'][$cat_id]) ) {
            $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

#
#-----[ FIND ]------------------------------------------
#

                  if ( $is_auth_ary[$forum_id]['auth_view'] )
                  {

#
#-----[ AFTER, ADD ]------------------------------------------
#
                     // 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



#
#-----[ OPEN ]------------------------------------------
#

posting.php

#
#-----[ FIND ]------------------------------------------
#

   $forum_name = $post_info['forum_name'];

#
#-----[ AFTER, ADD ]------------------------------------------
#

   // 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_name, $phpbb_seo->seo_static['forum']);
   }
   // www.phpBB-SEO.com SEO TOOLKIT EN

#
#-----[ OPEN ]------------------------------------------
#

viewforum.php

#
#-----[ FIND ]------------------------------------------
#

//
// 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');
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

// 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_row['forum_name'], $phpbb_seo->seo_static['forum']);
}
// www.phpBB-SEO.com SEO TOOLKIT END


#
#-----[ FIND ]------------------------------------------
#

      if( ( $replies + 1 ) > $board_config['posts_per_page'] )
      {

#
#-----[ BEFORE, ADD ]------------------------------------------
#

      // www.phpBB-SEO.com SEO TOOLKIT BEGIN
      if ( !isset($phpbb_seo->seo_url['topic'][$topic_id]) ) {
         $phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url($topic_title);
      }
      // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

#
#-----[ FIND ]------------------------------------------
#

if ($post_id)
{
   $start = floor(($forum_topic_data['prev_posts'] - 1) / intval($board_config['posts_per_page'])) * intval($board_config['posts_per_page']);
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !isset($phpbb_seo->seo_url['forum'][$forum_topic_data['forum_id']]) ) {
   $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


#
#-----[ FIND ]------------------------------------------
#
if ( count($orig_word) )
{
   $topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
}


#
#-----[ AFTER, ADD ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !isset($phpbb_seo->seo_url['topic'][$topic_id]) ) {
   $phpbb_seo->seo_url['topic'][$topic_id] = $phpbb_seo->format_url($topic_title);
}
// www.phpBB-SEO.com SEO TOOLKIT END


#
#-----[ OPEN ]------------------------------------------
#

includes/functions.php

#
#-----[ FIND ]------------------------------------------
#
#function make_jumpbox($action, $match_forum_id = 0)
#{
   global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID;

#
#-----[ AFTER, ADD ]------------------------------------------
#

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   global $phpbb_seo;
   // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ FIND ]------------------------------------------
#

                  $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']
                  );

#
#-----[ REPLACE WITH ]------------------------------------------
#
                  // 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

#
#-----[ OPEN ]------------------------------------------
#


search.php

#
#-----[ FIND ]------------------------------------------
#

      for($i = 0; $i < count($searchset); $i++)
      {


#
#-----[ AFTER, ADD ]------------------------------------------
#

         // 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

#
#-----[ FIND ]------------------------------------------
#

         $topic_title = $searchset[$i]['topic_title'];

#
#-----[ REPLACE, WITH ]------------------------------------------
#

         // www.phpBB-SEO.com SEO TOOLKIT BEGIN
         // Moved above
         //$topic_title = $searchset[$i]['topic_title'];
         // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ FIND ]------------------------------------------
#

                  $topic_title = preg_replace($orig_word, $replacement_word, $topic_title);

#
#-----[ REPLACE, WITH ]------------------------------------------
#

                  // 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


#
#-----[ FIND ]------------------------------------------
#

            if ( count($orig_word) )
            {
               $topic_title = preg_replace($orig_word, $replacement_word, $searchset[$i]['topic_title']);
            }

#
#-----[ REPLACE, WITH ]------------------------------------------
#

            // 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


#
#-----[ OPEN ]------------------------------------------
#


includes/sessions.php

#
#-----[ FIND ]------------------------------------------
#

function append_sid($url, $non_html_amp = false)
{
   global $SID;

#
#-----[ AFTER, ADD]------------------------------------------
#

   // 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

#
#-----[ OPEN ]------------------------------------------
# Note : This code is going to help your site a lot, we request that you keep this copyright notice as specified in the licence.
# If You really cannot put this link, you should at least provide us with one visible (can be small but visible) link
# on your home page or your forum Index using this code for example <a href="http://www.phpbb-seo.com/" title="Search Engine Optimization" target="_phpBBSEO">phpBB SEO</a>
#

templates/subSilver/overall_footer.tpl

#
#-----[ FIND ]------------------------------------------
#

Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group

#
#-----[ IN-LINE FIND ]------------------------------------------
#

<br />{TRANSLATION_INFO}

#
#-----[ IN-LINE BEFORE, ADD]------------------------------------------
#

<br /><a href="http://www.phpbb-seo.com/" title="Search Engine Optimization" target="_phpBBSEO">phpBB SEO</a>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM



co znamena ....
Kód: Vybrať všetko
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpbb/index\.html$ /phpbb/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^phpbb/[a-z0-9_-]+/([^/]+\.html)$ /phpbb/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^phpbb/[a-z0-9_-]*-c([0-9]+)\.html$ /phpbb/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^phpbb/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^phpbb/[a-z0-9_-]*-f([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^phpbb/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^phpbb/[a-z0-9_-]*-t([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################



a co znamena
Kód: Vybrať všetko
##   index.php?c=xx               =>   cat-title-cxx.html
##
##   viewforum.php?t=xx            =>   forum-title-fxx.html
##
##   viewforum.php?t=xx&start=xx         =>   forum-title-fxx-yy.html
##
##   viewtopic.php?t=xx               =>   topic-title-txx.html
##
##   viewtopic.php?t=xx&start=xx         =>   topic-title-txx-yy.html
##
##   viewtopic.php?p=xx               =>   postxx.html
##
##   profile.php?mode=viewprofile&u=xx    =>   memberxx.html
##
Poď prispieť svojim návodom, názorom, otázko, srandičkou
DISKUSNÉ FÓRUM + zarabanie na nete .. www.forum.furions.sk
WlaDo13
Skúsený
Skúsený
 
Príspevky: 166
Registrovaný: Štv Apr 10, 2008 10:09 pm

Poslaťod Leachim » Uto Aug 19, 2008 2:30 pm

Všetko je tam napísané :roll:
Michael Watzke - Osobný blog, Bazár PC, notebookov, Tvorba WWW stránok
Nepíšte mi ohľadom phpBB, neodpovedám...
Obrázok užívateľa
Leachim
Expert
Expert
 
Príspevky: 1123
Registrovaný: Sob Jan 27, 2007 2:34 pm

Poslaťod WlaDo13 » Uto Aug 19, 2008 3:48 pm

Leachim píše:Všetko je tam napísané :roll:


njn ale vysvetli co znamenaju tie 2 CODE .... :cry:
Poď prispieť svojim návodom, názorom, otázko, srandičkou
DISKUSNÉ FÓRUM + zarabanie na nete .. www.forum.furions.sk
WlaDo13
Skúsený
Skúsený
 
Príspevky: 166
Registrovaný: Štv Apr 10, 2008 10:09 pm

Poslaťod Leachim » Uto Aug 19, 2008 3:55 pm

Prvý je súčasť htaccessu a druhý je iba, ako budú vyzerať URL
Michael Watzke - Osobný blog, Bazár PC, notebookov, Tvorba WWW stránok
Nepíšte mi ohľadom phpBB, neodpovedám...
Obrázok užívateľa
Leachim
Expert
Expert
 
Príspevky: 1123
Registrovaný: Sob Jan 27, 2007 2:34 pm

Poslaťod WlaDo13 » Uto Aug 19, 2008 3:59 pm

Tu súčasť htaccessu netreba instalvat nie?

instalacia je az od copy???

alebo od toho .htaccess

PS: kde najdem .htaccess ?? :? :? :cry: :?:
Poď prispieť svojim návodom, názorom, otázko, srandičkou
DISKUSNÉ FÓRUM + zarabanie na nete .. www.forum.furions.sk
WlaDo13
Skúsený
Skúsený
 
Príspevky: 166
Registrovaný: Štv Apr 10, 2008 10:09 pm

Poslaťod Ďuri » Uto Aug 19, 2008 4:07 pm

Ale ved si to cele precitaj a pochopis.
Modifikácie pre phpbb3: http://www.phpbb3hacks.com
Obrázok phpbb3 podpora
Ďuri
Moderátor
Moderátor
 
Príspevky: 1379
Registrovaný: Štv Aug 16, 2007 4:41 pm

Poslaťod WlaDo13 » Uto Aug 19, 2008 4:36 pm

NAINSTALVOL SOM A KED DAM OTVORIT NEJAKE FORUM NAPISE url NOT FOUND KDE MOZE BYT CHYBA??
Poď prispieť svojim návodom, názorom, otázko, srandičkou
DISKUSNÉ FÓRUM + zarabanie na nete .. www.forum.furions.sk
WlaDo13
Skúsený
Skúsený
 
Príspevky: 166
Registrovaný: Štv Apr 10, 2008 10:09 pm

Poslaťod miso250593 » Uto Aug 19, 2008 5:05 pm

no otvor si pspad a vlož doň toto
Kód: Vybrať všetko
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpbb/index\.html$ /phpbb/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^phpbb/[a-z0-9_-]+/([^/]+\.html)$ /phpbb/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^phpbb/[a-z0-9_-]*-c([0-9]+)\.html$ /phpbb/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^phpbb/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^phpbb/[a-z0-9_-]*-f([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^phpbb/[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^phpbb/[a-z0-9_-]*-t([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################


ulož ho ako .htaccess
a uploadni tam kde máš index teda do rootu
- - - - - - - Signature - - - - - - -
Klikni moja osobná stránka
Rozšírenia pre mód extend rank color - farba všade bez zbytočných dotazov
Obrázok
Som 234 člen tohto fóra :D
- - - - - - - Signature - - - - - - -
Obrázok užívateľa
miso250593
Expert
Expert
 
Príspevky: 537
Registrovaný: Pon Máj 07, 2007 6:41 pm

Poslaťod WlaDo13 » Uto Aug 19, 2008 5:29 pm

aha lebo ja som upravoval .htaccess tusim v catche alebo niekde tak ...
:oops:
cize do rootu dam
Poď prispieť svojim návodom, názorom, otázko, srandičkou
DISKUSNÉ FÓRUM + zarabanie na nete .. www.forum.furions.sk
WlaDo13
Skúsený
Skúsený
 
Príspevky: 166
Registrovaný: Štv Apr 10, 2008 10:09 pm

Poslaťod WlaDo13 » Uto Aug 19, 2008 11:06 pm

ok mam to nainstalvoane len diakritku treba opravit napr ak mam nieco skúška tak napíše napr skzrka

+ na subforach mi to nefunguje :?
Poď prispieť svojim návodom, názorom, otázko, srandičkou
DISKUSNÉ FÓRUM + zarabanie na nete .. www.forum.furions.sk
WlaDo13
Skúsený
Skúsený
 
Príspevky: 166
Registrovaný: Štv Apr 10, 2008 10:09 pm


Späť na SEO, SEF a SEM

Kto je on-line

Užívatelia prezerajúci fórum: Žiadny registrovaný užívateľ nie je prítomný a 0 hostia


vladstudio
TOPlist TOPlist

Valid XHTML 1.0 Strict [Valid Atom 1.0]


* Štúrovo ubytovanie *