phpBB SEO Mixed mod Rewrite V 0.2.4

phpBB2 SEO Mixed mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting categories and forums titles in their URLs, but keeping a static rewriting for topics.

Moderator: Moderators

phpBB SEO Mixed mod Rewrite V 0.2.4

Postby SeO » Thu May 25, 2006 8:09 pm

phpBB SEO Mixed mod Rewrite
    Title : phpBB SEO Mixed mod Rewrite

    Author : dcz / www.phpbb-seo.com

    Description : This mod will URL rewrite phpBB URLs, injecting categories and forums titles in their URLS.
    Topics remains statically rewritten (topicxx.html).

    Version : 0.2.4

    Installation Level : Advanced.

    Installation Time : 5 min.

    EZmod : yes.

    phpBB : 2.0.22.

Author's Notes :
    Before you do anything :
      Please read carefully this post, you will save time and will not risk to jeopardise your web-site's PageRanking.

      This mod requires running Apache Server with mod_Rewrite module loaded, or IIS server running isapi_rewrite.

      This mod is fully working with phpBB vanilla (unmodded), special patches may be required for some mods. Many patches and addons already exists.

      You should think about which solution will best fit your forum project before you install any of the three phpBB SEO mod Rewrite.

      Don't forget to install the Cyber alien Guest session mod ;).

      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 => topicxx.html

      viewtopic.php?t=xx&start=xx => topicxx-yy.html

      viewtopic.php?p=xx => postxx.html

      profile.php?mode=viewprofile&u=xx => memberxx.html


      It will not output any pagination duplicates.

      URL rewriting is performed without using ob_start() nor adding any SQL.

      The process is optimized, titles are formatted once, even if the url is called many times.
      Short URL feature :
      As for the phpBB SEO Advanced mod Rewrite everything in topic title in between "[" and "]" won't be injected in URL, but this feature is less useful here.
      Example :
      This Forum title : "[SOMETHING] The Forum Title" will correspond to this URL : "the-forum-title-vfxx.html"


      Bad Title handling :
      Almost useless here, but still.
      Example :
      This Forum title : """"??Very bad title handling"[hehe]!!!" will correspond to this URL : "very-bad-title-handling-vfxx.html"


      This mod is and will be compatible to all phpBB SEO modules, specific install instructions may apply.

    Char-sets
      This version uses a really fast method ( format_url() ) to format title before urls injection, up to 30% ! fatser than version under 0.2.4, and supports all the char-sets supported by htmlentities().

      This means 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 :

      Code: Select all
            $this->encoding = "iso-8859-1";


      And change it to the char-set you are using, using the htmlentities() char-set table bellow :

      Char-setAliasDescription
      ISO-8859-1ISO8859-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.
      cp866ibm866, 866 DOS-specific Cyrillic charset. This charset is supported in 4.3.2.
      cp1251 Windows-1251, win-1251, 1251 Windows-specific Cyrillic charset. This charset is supported in 4.3.2.
      cp1252 Windows-1252, 1252 Windows specific charset for Western European.
      KOI8-R koi8-ru, koi8r Russian. This charset 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


      Note: Any other character sets are not recognized and ISO-8859-1 will be used instead.

      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 : "نرم افزار - Software" will be formated prior to injection in the following way : "software".

      Note tha in the vast majority of cases, English Speacking forum will use iso-8859-1, and won't need any additional set up.

      In case you are using an unsupported char-set, you can keep the old method.

    Migrating :
      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 Mixed mod rewrite forum.

    The robots.txt :

      The robots.txt file must be uploaded in your domain's root folder.

      You must obviously change phpbb/ with your real phpBB installation folder (or with nothing if it's installed in the root).

      Code: Select all
      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


      This is the minimum required for bots to only consider the rewritten URLs.
      The index.php? is absolutely normal and does not disallow index.php ;)

      After this you can add :

      Code: Select all
      Disallow: /phpbb/member
      Disallow: /phpbb/profile.php
      Disallow: /phpbb/memberlist.php
      Disallow: /phpbb/faq.php


      If you don't want to put too much weight on those, by the way attractive to spammers. Will save some "useless" bot visits as well.

      You may need to implement additional disallows if you changed URL standard for example.

    Some advices :
      Don't forget about your robots.txt as well as about the www prefix issue.

      We recommend the use of the Mixed Zero Duplicate together with this mod.

      The mx Google Siteamps and mx Sitmaps are, off course, compatible, useful and a requirement to help out Search Engines to Crawl you site well.

      You can as well find out a lot of interesting Search Engine Optimization (SEO) parameters thanks to our phpBB SEO webmaster Tools

      You should perform test locally or on a test server before you use this setup on a live site. This will prevent many small path issues in .htaccess from becoming too stressing for you ;)

      To load mod Rewrite with Easyphp :
      Open EasyPHP1-8\conf_files\httpd.conf and un-comment
      (get rid of the "#" at the beginning of the required lines) those two lines :

      Code: Select all
      LoadModule rewrite_module modules/mod_rewrite.so


      And :

      Code: Select all
      AddModule mod_rewrite.c

    0.2.2 => 0.2.x update :
      This update will mostly update the format_url() method, for a faster title formating (up to 30% !) and better char-set handling.

      This update won't require any patches updates, you should only make sure to use the 0.2.2 and above versions of the zero duplicate and mx Sitemaps.
      It is though possible to maintain compatibility with previous version until you'll update the zero dupe and mx sitemaps.
      You'll just need to add :

      Code: Select all
      if (!defined('PHPBB_URL')) {
         define('PHPBB_URL', $phpbb_seo->seo_path['phpbb_url']);
      }


      After :

      Code: Select all
      $phpbb_seo = new phpbb_seo();


      in common.php.

Languages :

Download:
Last edited by SeO on Mon Apr 30, 2007 12:09 pm, edited 12 times in total.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Advertisement

Postby dcz » Mon Apr 30, 2007 12:10 pm

To obtain support for this mod, please use the Mixed mod Rewrite forum.

You can post new threads and reply to existing ones.

This topic is locked, support for the old version (0.0.2) is provided here.

Click on the Watch this thread link to be notified of updates for this mod.
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21376
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 Mixed mod rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests