- Title : phpBB SEO Simple mod Rewrite
Author : dcz / www.phpbb-seo.com
Description : This mod makes static URLs for phpBB.
Version : 0.2.4
Installation Level : Advanced.
Installation Time : 5 min.
EZmod : yes.
phpBB : 2.0.22.
Author's Notes :
- Before you do anything :
- Code: Select all
$this->encoding = "iso-8859-1";- 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- Code: Select all
Disallow: /phpbb/member
Disallow: /phpbb/profile.php
Disallow: /phpbb/memberlist.php
Disallow: /phpbb/faq.php- Code: Select all
LoadModule rewrite_module modules/mod_rewrite.so- Code: Select all
AddModule mod_rewrite.c- Code: Select all
if (!defined('PHPBB_URL')) {
define('PHPBB_URL', $phpbb_seo->seo_path['phpbb_url']);
}- Code: Select all
$phpbb_seo = new phpbb_seo();
- 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 => catxx.html
viewforum.php?t=xx => forumxx.html
viewforum.php?t=xx&start=xx => forumxx-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.
This mod is and will be compatible to all phpBB SEO modules, specific install instructions may apply.
Char-sets
Even though the simple mod rewrite does not inject titles in phpBB's URL, it's possible that you will
Install a patch for a module which uses titles injection.
The following would apply to possible the title injection performed by eventual patches on phpBB modules such as smartor album.
In case you're only using phpBB, you can safely ignore this part.
Just know the mod is able to deal with many char-sets in case there is some title injection.
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 :
And change it to the char-set you are using, using the htmlentities() char-set table bellow :
Char-set Alias 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 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 Simple 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).
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 :
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 Simple 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 :
And :
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 :
After :
in common.php.
Languages :
- English, French.
French support thread
Download:

English |
French
News
