phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Advanced phpBB3 SEO mod Rewrite V 0.4.2

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 2383

Advanced phpBB3 SEO mod Rewrite V 0.4.2Posted: Sat Jun 02, 2007 4:44 pm    Post subject: Advanced phpBB3 SEO mod Rewrite V 0.4.2

Advanced phpBB3 SEO mod Rewrite
    Title : Advanced phpBB3 SEO mod Rewrite

    Author : dcz / www.phpbb-seo.com

    Description : This mod will URL rewrite phpBB URLs, injecting forums and topic titles in their URLS, each URL being rewritten once, no matter the number of links using it on the page.

    Version : 0.4.2

    Installation Level : Advanced.

    Installation Time : 15 min.

    EZmod : n/a

    phpBB3 : 3.0.1


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.
      It describe the phpBB2 mod rewrites, but this should help out to understand better anyway.

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

      This mod is fully working with phpBB3 vanilla (unmodded), special patches may be required for some mods.

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

      This mod no longer requires any other SID removal method, phpBB is doing it by itself as long as you set it up properly.

      With this mod, phpBB URL will transformed this way :
      Quote:
      • viewforum.php?f=xx
        • forum-title-fxx.html (by default),
        • any-keywords-fxx/ (optional),
        • any-keywords/ (optional)

      • viewforum.php?f=xx&start=yy
        • any-keywords-fxx-yy.html (by default),
        • any-keywords-fxx/pageyy.html (optional),
        • any-keywords/pageyy.html (optional)

      • viewtopic.php?f=xx&t=yy
        • topic-title-tyy.html (by default),
        • any-keywords-fxx/topic-title-tyy.html (optional),
        • any-keywords/topic-title-tyy.html (optional)

      • viewtopic.php?f=xx&t=yy&start=zz
        • topic-title-tyy-zz.html (by default),
        • any-keywords-fxx/topic-title-tyy-zz.html (optional),
        • any-keywords/topic-title-tyy-zz.html (optional),
        • any-keywords-fxx/topic-title-tyy/pagezz.html (optional),
        • any-keywords/topic-title-tyy/pagezz.html (optional)

      • viewtopic.php?p=xx
        • postxx.html (by default)
        • topic-title-tyy(-zz).html#pxx (with the no duplicate mod)

      • memberlist.php?mode=viewprofile&u=xx
        memberlist.php?mode=viewprofile&un=nickname (if possible)
        • memberxx.html (by default)
        • nickname-uxx.html (optional),
        • nickname-uxx/ (optional),
        • member/nickname (optional)

      • memberlist.php?mode=group&g=xx
        • groupxx.html (by default)
        • groupe-name-gxx.html (optional)

      • memberlist.php?mode=group&g=xx&start=yy
        • groupxx-yy.html (by default)
        • groupe-name-gxx-yy.html (optional),
        • groupxx/pageyy.html (optional)
        • groupe-name-gxx/pageyy.html (optional)

      • memberlist.php?mode=leaders
        • the-team.html (by default)

      • search.php?author_id=xx&sr=post|topics
        search_id=egosearch
        search.php?author=nickname&sr=post|topics (if possible)
        • memberxx-posts|topics.html (optional),
        • memberxx/posts|topics/ (optional),
        • nickname-uxx-posts|topics.html (optional),
        • nickname-uxx/posts|topics/ (optional),
        • member/nickname/posts|topics/ (optional).

      • search.php?author_id=xx&sr=post|topics&start=yy
        search.php?author=nickname&sr=post|topics&start=yy(if possible)
        • memberxx-posts|topics-yy.html (optional),
        • memberxx/posts|topics/pageyy.html (optional),
        • nickname-uxx-posts|topics-yy.html (optional),
        • nickname-uxx/posts|topics/pageyy.html (optional),
        • member/nickname/posts|topics/pageyy.html (optional).

      • search_id=active_topics
        • active-topics.html

      • search_id=active_topics&start=xx
        • active-topics-xx.html

      • search_id=unanswered&sr=topics
        • unanswered.html

      • search_id=unanswered&start=xx&sr=topics
        • unanswered-xx.html

      • search_id=newposts&sr=topics
        • newposts.html

      • search_id=newposts&start=xx&sr=topics
        • newposts-xx.html

      • If the virtual folder is turned on, global announces will be treated in a separate virtual folder :
        • viewtopic.php?f=xx&t=yy
          • announces/announces-title-tyy.html

        • viewtopic.php?f=xx&t=yy&start=zz
          • announces/announces-title-tyy-zz.html


      It will not output any pagination duplicates.
      URL rewriting is performed without using ob_start() and does not add any SQL.
      The process is optimized, titles and URLs are formatted once, even if the url is called many times.

      Short URL feature :
      Quote:
      Anything in topic title 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 :
      Quote:
      Example :
      This topic title : """"??Véry bâd tïtle handling"[hehe]!!!" will correspond to this URL : "very-bad-title-handling-vtxx.html"


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


    Performances

      This mod is the fastest ever written by phpBB SEO. It's using two levels of cache :
      • One in the RAM for almost all URLs passing through the phpbb_seo class. It can save up to couple hundred calls to the rewriting functions (viewforum.php).
      • One in a file, for forum URLs. It saves calls to the format_url() method and as well allows us to take full control over the forum URLs and dissociate the URLs from forum titles.

      While this mod is doing a lot more than the 0.2.4 for phpBB2, it's about two times faster.
      And better, the rewriting process does not really depend on the server load :
      Quote:
      CPU @ 100% :
      Code:
      Time : 0.314s | 13 Queries | GZIP : Off
      Seo : 0.01043 s ( 3.32 % ) - 27 Titles ( 6.28 % ) - 96 URLs rewritten ( 67.94 % ) - 218 URLs cached (25.78 % - saved 0.0161 s) | Explain

      CPU @ 0% :
      Code:
      Time : 0.107s | 13 Queries | GZIP : Off
      Seo : 0.01032 s ( 9.62 % ) - 27 Titles ( 6.09 % ) - 96 URLs rewritten ( 68.39 % ) - 218 URLs cached (25.52 % - saved 0.0160 s) | Explain
      Forum with more than 25 topics, the heaviest page as far as URL rewriting



    Settings

      This mod is fully configurable in phpBB ACP.

      • Set up the various phpBB SEO class features such as :
        • Activate URL rewriting (optional) :
          Quote:
          You can activate and deactivate URL rewriting on all the forum.

        • Profiles and groups injection (optional) :
          Quote:
          You can here choose to inject nicknames group names and user message page (optional see below) in their URLs instead of the default static rewriting.

        • Virtual folder Profiles (optional) :
          Quote:
          You can choose to simulate a folder structure for profiles and user messages page (optional see below) URLs, phpBB/nickname-uxx/(topics/)[b] or [b]phpBB/memberxx/(topics/)[b] instead of [b]phpBB/nickname-uxx(-topics).html[b] and [b]phpBB/memberxx(-topics).html[b].

        • Profiles ID removing (optional) :
          Quote:
          When Profiles and groups injection is activated, you can here chose to use [b]example.com/phpBB/member/nickname instead of the default example.com/phpBB/nickname-uxx.html. Please read the install for browser limitation and urlencoding issues raised by this option.

        • Common Search and User messages pages rewriting (optional) :
          Quote:
          User messages pages URLs can be rewritten as well as such as active topics, unanswered and newposts pages. The URL rewriting type (with and without ID) follows the one set for profiles and groups.
          phpBB/messages/nickname/topics/ VS phpBB/nickname-uxx-topics.html VS phpBB/memberxx-topics.html.
          ID removing on these links will imply the same limitation as per the user profiles.

        • SID Removing (optional) :
          Quote:
          SID will be removed from 100% of the URLs passing through the phpbb_seo class, for guests thus bots.
          This ensure bots won't see any SID on forum, topic and post URLs, but visitors that do not accept cookies will most likely create more than one session.

        • Highlights Removing (optional) :
          Quote:
          Highlights will be removed from 100% of the URLs passing through the phpbb_seo class, for guests thus bots.
          This ensure bots won\t see any Highlights on forum, topic and post URLs.
          The Zero duplicate will automatically follow this setting, eg http 301 redirect url with highlights for guest and bots if set to Yes.

        • Small words filtering (optional) :
          Quote:
          Words composed of less than three letters won't be used in URLs.
          Example : this-is-a-topic-title-txx.html VS this-topic-title-txx.html for a topic URL

        • Virtual folder (optional) :
          Quote:
          Forum URLs can be treated as virtual folders and optionally be used in the topics URLs.
          Example :topic-title-txx.html vs forum-url-fxx/topic-title-txx.html for a topic URL.

        • Virtual Root (optional) :
          Quote:
          If phpBB is installed in a sud folder (example phpBB3/), you can simulate a root install for rewritten links.
          Example :phpBB3/forum-title-fxx/topic-title-txx.html VS forum-title-fxx/topic-title-txx.html for a topic URL.
          This can be handy to shorten URLs a bit, especially if you are using the "Virtual Folder" feature. UnRewritten links will continue to appear and work in the phpBB folder.

        • Forum URL caching (optional) :
          Quote:
          Turns on the cache for forum URLs and allow to separate forum titles from their URL.
          Example :forum-title-fxx/ VS any-keywords-fxx/ for a forum URL.

        • Forum ID Removing (optional) :
          Quote:
          Get rid of the IDs and delimiters in forum URLs. Only apply if Forum URL caching is activated.
          Example :any-keywords-fxx/ VS any-keywords/ for a forum URL.

      • Generate a personalized .htaccess :
        • Once you will have set up the above options, you will be able to generate a personalized .htaccess within no time.

      • Accurately choose your forum URLs :
        • You will be able to dissociate Forum URLs from their titles and elect to use whatever keyword you may like in them.


    Char-sets

      phpBB3 uses UTF-8 as final encoding, and this should be enough to handle all cases.
      UTF-8 is fully supported by this mod.
      This mod rewrite will only inject the ASCII Chars ( after removing all accents ) available in the titles.
      For example : "نرم افزار - Software niño" will be formated prior to injection in the following way : "software-nino".
      It is still possible that some characters only having a decimal HTML/XML entity won't be handled properly at first.
      The method to filter these is simple, please ask for help in our forums.


    Migrating :

      If you are migrating, 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 phpBB3 advanced mod rewrite forum.


    The robots.txt :

      The robots.txt file must be uploaded in your domain's root folder.
      You must obviously replace phpbb/ with your real phpBB installation folder (or with nothing if it's installed in the root).
      Code:
      User-agent: *
      Disallow: /phpbb/viewtopic.php
      Disallow: /phpbb/viewforum.php
      Disallow: /phpbb/index.php?
      Disallow: /phpbb/posting.php
      Disallow: /phpbb/search.php?
      Disallow: /phpbb/ucp.php
      Disallow: /phpbb/mcp.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 Wink

      After this you can add :
      Code:
      Disallow: /phpbb/member
      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.

      Warning :
        In case you are migrating from a previous unrewritten phpBB version, wait couple month after you activate the zero duplicate mod before you implement the robots.txt. In such case we want to redirect first and then drop useless content.


    Note : Updating phpBB with this mod

      It will be as simple as with any other mod except on thing.
      This mod should and will shortly be fully integrated to phpBB3 hooking system, but until then, you'll need to proceed as follow to run phpBB's updater properly :
      Quote:
      Before you do it, just overwrite the old includes/functions.php with phpBB3 up to date one, run the update, and then, put back on the up to date and modded version of the file. This in order to circumvent an error caused by the use of append_sid() to build the return to index link displayed at the end of the update procedure, while the phpbb_seo class is not started.


    Some advices :

      Once you will have installed the mod, you will have to empty the phpBB/cache/ folder before the mod will fully work, just delete all files but the .htaccess.

      Don't forget about your robots.txt as well as about the www prefix issue.
      The Zero Duplicate as well as some other good mods (dynamic meta tag, Otpimal titles, No duplicate ...) that will help you out a lot in this SEO quest are to be found in the phpBB3 SEO toolkit Forum.
      The GYM sitemaps and mx sitemaps module will as well be released for phpBB3.

      You can as well check 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 Wink

      To load mod Rewrite with Easyphp :
      Quote:
      Open EasyPHP1-8\conf_files\httpd.conf and un-comment
      (get rid of the "#" at the beginning of the required lines) these two lines :
      Code:
      LoadModule rewrite_module modules/mod_rewrite.so

      And :
      Code:
      AddModule mod_rewrite.c



Languages :


Demo :


Premod :


Download:

_________________


Last edited by SeO on Wed Dec 12, 2007 6:13 pm; edited 11 times in total
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13031

Advanced phpBB3 SEO mod Rewrite V 0.4.2Posted: Sun Apr 20, 2008 3:00 pm    Post subject: Re: Advanced phpBB3 SEO mod Rewrite V 0.4.2

To obtain support for this mod, please use the Advanced SEO URL forum.

You can post new threads and reply to existing ones.

Click on the Watch this thread link to be notified of updates for this mod.

Please note that all type of upgrade from phpBB2 to phpBB3 will change all your topic url, no matter if you use or not mod rewrite, so upgrading is in all case something to prepare well.

Please note for update :
    The update will require some additional set up and .htaccess update.
    Your forum URLs will stay exactly the same, but URL rewriting is extended and User Messages search pages URL will change.
    User Messages search pages URLs will change :
      We decided to go for a better url structure and to as well hanlde the sr (showresults, can be topics or posts in search results) option.
      It's no big deal, but if you update, you'll need to keep the previous rewriterule you had in your .htaccess for user messages pages.
      To do so, make a copy of your current .htaccess, generate a new one once you've updated, and then grab the rewriterule you had in your old .htaccess after (the line is longer):
      Code:
      # USER MESSAGES

      and copy it after :
      Code:
      # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

      in your new .htaccess and the zero duplicate will do the rest Wink

    Before you do so, you can change the way search user pages are rewrtten if you wish, if you as well change the profile URLs, then you'll need to keep the old profile rewriterule the same way in your new .htaccess.
    If you encounter some difficulties to update the phpbb_seo_class.php file, for example if you modded it, you will just have to use the new file and edit it to re enter your previous customisations (static part & delimiters).
    Once you will have updated, you will have to refresh your theme's cache as well as phpBB's cache (ACP => STYLE, Themes => Refresh).


Installation :
    You will find the premodded phpBB 3.0.1 files in contrib/phpBB_3.0.1_modified_files/root/, you can safely overwrite the phpBB 3.0.1 files with these and skip the file editing part of this install if you did not modify these before you install this mod.
    Additional language files modified by this mod are to be found in contrib/phpBB_3.0.1_modified_files/translations/.

    A phpBB 3.0.1 => advanced mod rewrite 0.4.2 diff file is as well available in the contrib/ directory of this release.

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: