| :: |
| Author |
Message |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Thu May 25, 2006 8:22 pm Post subject: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
WARNING
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 Mixed mod Rewrite V 0.0.1 - 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: | | LoadModule rewrite_module modules/mod_rewrite.so |
And :
| Code: | | 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: | ##############################################################
## MOD Title: phpBB SEO Mixed 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-mixed-mod-rewrite-vt44.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:
##
## This mod require running Apache Server with mod_Rewrite On.
##
## This mod requires the Cyber Alien guest session mod (http://www.phpbbstyles.com/viewtopic.php?t=357).
##
## 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 => 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
##
## 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 duplicate.
##
## It will allow you to take advantage of nice title injected URL for Categories and Forum's URL without
## taking any risk to have very bad keyword injected in topic URL, here the admin decides what can be the
## best possible keywords to use in Categories and Forum's titles for a better Search Engine Optimization.
## Be Careful though, title should always be understandable by human ;-)
##
## 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"
##
## NOTE : phpBB SEO recommend the use of the phpBB SEO mixed mod Rewrite in almost all cases.
## 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_Mixed_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
## - optimiszed 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 Mixed 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: | 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: |
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. |
_________________ 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
Last edited by dcz on Thu Feb 01, 2007 11:17 am; edited 4 times in total |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Sun Jul 09, 2006 3:48 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
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: | #
#-----[ 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 |
 |
_________________ 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 |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Wed Jul 12, 2006 10:42 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
I think it would be better to talk about this is a new thread, but anyway yes, I think so, but only if the keywords can be useful.
We have seen phpbb could be a keyword you'd like, so there are some.
But it depends as well on the used search keyword linking to your site. I'd say, do it if the English words are likely to be used quite often in your forums, if nit, I am not sure it's this worth it to inject a keyword in an url never showing the keyword itself.
Then, I am not sure how well will the format_url() function will handle Persian UTF-8 mixed with English word.
This is to be tested, maybe utf8_encode & utf8_decode can help here too
++ |
_________________ 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 |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
legal
Joined: 05 Jul 2006 Posts: 42
|
Posted: Tue Jul 18, 2006 12:16 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
OK.
I've got a copy of .htaccess in both the root and the cache folder?
Is that wrong? |
|
|
| Back to top |
|
 |
legal
Joined: 05 Jul 2006 Posts: 42
|
Posted: Tue Jul 18, 2006 12:17 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
Here's the file:
| Code: | <Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
##################################################### |
|
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Tue Jul 18, 2006 12:22 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
| legal wrote: | OK.
I've got a copy of .htaccess in both the root and the cache folder?
Is that wrong? |
yes
You should only use on .htaccess containing rewriterules (anything but mod rewrite is ok for .htaccess in sub folder, like deny or auth) in the Root folder.
Now, I have to know if phpBB is installed in a folder or not.
If not your .htacess is ok, but without :
| Code: | <Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit> |
Which is disallowing any access
If you forum is installed in a sub folder, please add the path as suggested in install.
++ |
_________________ 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 |
|
 |
legal
Joined: 05 Jul 2006 Posts: 42
|
Posted: Tue Jul 18, 2006 12:24 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
It's in the root.
So I need to:
1. Delete .htaccess from cache but leave it in the root
2. Remove those lines from it
Thanks very much.
 |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
legal
Joined: 05 Jul 2006 Posts: 42
|
Posted: Tue Jul 18, 2006 12:26 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
It's working again!
Thanks very much for the great support
I was going to offer you guys a link on my site for all your help but you now have one from this mod anyway. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
Darth Pincho PR1

Joined: 22 Sep 2006 Posts: 141
|
Posted: Tue Oct 03, 2006 11:26 pm Post subject: Re: [Archive] phpBB SEO Mixed mod Rewrite V 0.0.2 |
|
|
I think i detect a typo error in the downloadable file at the first post
| Code: | #
#-----[ OPEN ]------------------------------------------
#
include/function.php
#
#-----[ FIND ]------------------------------------------
#
?>
|
must be includes/funcion.php |
_________________ Webmaster at:
http://www.tupincho.net
Discussion board at:
http://www.tupincho.net/foro/ |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
|
|