- 0.2.0 is out : To update please read this thread.
What follows is kept for archive.
0.0.2 support will continue for some time for 0.0.2 user, until they update.
Do not use this version if you are first installing this mod.
---------------------------------------------------------------------------------------
[DEV] phpBB SEO Advanced mod Rewrite V 0.0.2 - UPDATED
Before you do anything :
- Please read carefully this post, you will save time and will not risk to jeopardise your web-site's PageRanking.
Under construction Topic.
From now on, the English versions will see the profiles URL to be : memberxx.html (membrexx.html in the French one).
This mod is working fully with phpBB vanilla (unmodded), special patch may be required for some mods, like simple sub forum. Many of them already exist here.
You should think about which solution will best fit your forum project before you install any of the three phpBB SEO mod Rewrite.
As well you should think about your robots.txt as well as about the www prefix issue.
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 uncomment
(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
Don't forget to install the Cyber alien Guest session mod or any other SID removal method you may prefer.
- Code: Select all
##############################################################
## MOD Title: phpBB SEO Advanced mod Rewrite
## MOD Author: dcz <n/a> http://www.phpbb-seo.com/
## MOD Description: This mod makes static URLs for phpBB
## Please read the author notes BEFORE using this mod.
## Check http://boards.phpbb-seo.com/phpbb-mod-rewrite/phpbb-seo-advanced-mod-rewrite-vt43.html
## for the latest version or to get help with this MOD.
##
## MOD Version: 0.0.2
##
## Installation Level: (Advanced)
## Installation Time: 5 Minutes
## Files To Edit: (6)
## .htaccess,
## index.php,
## viewforum.php,
## viewtopic.php,
## search.php,
## overall_footer.tpl
## Included Files: n/a
##############################################################
## Author Notes:
##
## 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.
## The last post link on forum Index is now statically mod rewritten postxx.html.
## People whilling to keep the old way, even though phpBB SEO does not recomand it, should read the note
## in the release thread bef ore implementing the required changes or asking for support.
##
## This mod requires running Apache Server with mod_Rewrite module loaded.
##
## 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, your phpBB URL will change :
##
## index.php?c=xx => cat-title-vcxx.html
##
## viewforum.php?t=xx => forum-title-vfxx.html
##
## viewforum.php?t=xx&start=xx => forum-title-vfxx-yy.html
##
## viewtopic.php?t=xx => topic-title-vtxx.html
##
## viewtopic.php?t=xx&start=xx => topic-title-vtxx-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() nor adding any SQL. It is thus faster and not messing anymore whith Gun-Zip nor with the html link format,
## and will not output any pagination duplicates.
##
## 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 almost all 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.
##
## Migrating from another mod Rewrite is as well possible but should be done with care to make sure you won't loose Page-Ranking.
##
####
## 0.0.1 => 0.0.2 Update : Required changes to be found in 0.0.1_0.0.2_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 exeptions, please contact a phpBB SEO administrator (primarily SeO or dcz).
##
## Failure to comply will jeopardize support.
##
##############################################################
## MOD History:
##
## 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
##############################################################
Download phpBB SEO Advanced mod Rewrite V 0.0.2
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.
French support for this mod.
--------------------------------------------------------------------------------------
Do not forget :
http://boards.phpbb-seo.com/phpbb-mod-r ... 5.html#926
dcz wrote:I am currently working on enhancing phpBB link and to organise the phpBB SEO Toolkit. I thought the nav link handling should be added to the phpBB SEO mod rewrites themselves, as it require very little changes.
Here are the code changes that will be added to the next version, you can implement them now they are final
They'll make sure your nav links are mod rewritten and will get rid of the next and previous topic links for guest, as they are duplicates.
- Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/function.php
#
#-----[ FIND ]------------------------------------------
#
$nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
#
#-----[ REPLACE WITH ]------------------------------------------
#
$nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
//'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
'url' => append_sid(format_url($forum_rows[$j]['forum_name']) . "-vf" . $forum_rows[$j]['forum_id'] . ".html") ,
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ($userdata['session_logged_in']) {
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

English |
French
News

