| |
|
| :: |
| Author |
Message |
Darth Pincho PR1

Joined: 22 Sep 2006 Posts: 141
|
Posted: Sun Mar 16, 2008 1:43 am Post subject: Great work. Some questions |
|
|
Hi DCZ. Let me give you CONGRATULATIONS for such big script. I have upgraded from phpbb2 to phpbb3 SEO premod. And this thing ROCKS.
I have some doubts, because the script is much more complete now and a have a lot of new features.
1) how can i assure that all the visitors incoming from my previously google indexed urls are being redirected to the right post now?
2) where are the rewrite rules being written? can i put them anywhere? why is best in home folder or in phpbb/ folder? advantages? disadvantages?
3) I add like 1000 words to the search_ignore_words.php im rebuilding search right now. I have to check anything else regarding to this???
4) You know how to allow html in phpbb3.0?? i dont have idea. Is earch in google and do not find anything. Can you give me some link with an exlanation?
My old parameter:
| Code: | #########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^foro/index\.html$ foro/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^foro/.*/([^/]+\.html)$ foro/index.php [R=301,L]
# CATEGORIES
# RewriteRule ^foro/.*-c([0-9]+)\.html$ foro/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
# RewriteRule ^foro/.*-f([0-9]+)-([0-9]+)\.html$ foro/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
# RewriteRule ^foro/.*-f([0-9]+)\.html$ foro/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
# RewriteRule ^foro/.*-t([0-9]+)-([0-9]+)\.html$ foro/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
# RewriteRule ^foro/.*-t([0-9]+)\.html$ foro/viewtopic.php?t=$1 [QSA,L]
# POST
# RewriteRule ^foro/post([0-9]+)\.html$ foro/viewtopic.php?p=$1 [QSA,L]
#PROFILES
#RewriteRule ^foro/member([0-9]+)\.html$ foro/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
# REDIRECCIONANDO URLS DE MIXED MODE AL FORMATO ADVANCED MODE
# RewriteRule ^foro/.*-vf([0-9]+)-([0-9]+)\.html$ foro/viewforum.php?f=$1&start=$2 [QSA,L]
# RewriteRule ^foro/.*-vt([0-9]+)\.html$ foro/viewtopic.php?t=$1 [QSA,L]
# RewriteRule ^foro/.*-vf([0-9]+)-([0-9]+)\.html$ foro/viewforum.php?f=$1&start=$2 [QSA,L]
# RewriteRule ^foro/.*-vf([0-9]+)\.html$ foro/viewforum.php?f=$1 [QSA,L]
# RewriteRule ^foro/.*-fmp([0-9]+)-([0-9]+)\.html$ foro/viewforum.php?f=$1&start=$2 [QSA,L]
# RewriteRule ^foro/.*-fmp([0-9]+)\.html$ foro/viewforum.php?f=$1 [QSA,L]
# RewriteRule ^foro/.*-vc([0-9]+)-([0-9]+)\.html$ foro/viewforum.php?f=$1&start=$2 [QSA,L]
# RewriteRule ^foro/.*-vc([0-9]+)\.html$ foro/viewtopic.php?t=$1 [QSA,L]
# PAGINATED TOPIC
# RewriteRule ^foro/topic([0-9]+)-([0-9]+)\.html$ foro/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
# RewriteRule ^foro/topic([0-9]+)\.html$ foro/viewtopic.php?t=$1 [QSA,L]
#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
# RewriteRule ^foro/rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?$1&$2 [L]
# RSS forums
# RewriteRule ^foro/forums-rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?forum&c&$1&$2 [L]
# RSS all
# RewriteRule ^foro/([a-zA-Z0-9]+)-rss([0-9]*)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
# RewriteRule ^foro/.+-rf([0-9]+)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
# RewriteRule ^foro/sitemaps\.([xml|xml\.gz]+)$ foro/sitemap.php [L]
# Sitemap modules
# RewriteRule ^foro/([a-zA-Z0-9]+)-sitemap\.([xml|xml\.gz]+)$ foro/sitemap.php?$1 [L]
# Forum Sitemaps
# RewriteRule ^foro/.+-gf([0-9]+)\.([xml|xml\.gz]+)$ foro/sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
# RewriteRule ^foro/urllist\.([txt|txt\.gz]+)$ foro/urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES #
######################################################### |
My new parameters:
| Code: | RewriteEngine On
RewriteBase /
# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^foro/forum\.html$ /foro/index.php [QSA,L,NC]
# FORUM
RewriteRule ^foro/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /foro/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^foro/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^foro/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^foro/[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^foro/member/([^/]+)/?$ /foro/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^foro/messages/([^/]+)/?(page([0-9]+)\.html)?$ /foro/search.php?author=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^foro/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /foro/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^foro/post([0-9]+)\.html$ /foro/viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^foro/the-team\.html$ /foro/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^foro/[a-z0-9_-]+(-([0-9]+))?\.html$ /foro/viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
###############SUBDREAMER MOD REWRITE#################
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
######################################################
############### WWW ISSUE ############################
RewriteCond %{HTTP_HOST} ^tupincho\.net$ [NC]
RewriteRule ^(.*) http://www.tupincho.net/$1 [QSA,L,R=301]
###################################################### |
I have to keep some of the old rules too??? |
_________________ Webmaster at:
http://www.tupincho.net
Discussion board at:
http://www.tupincho.net/foro/ |
|
| Back to top |
|
 |
|
 |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 809
|
Posted: Mon Mar 17, 2008 12:20 pm Post subject: Re: Great work. Some questions |
|
|
| Darth Pincho wrote: | | 1) how can i assure that all the visitors incoming from my previously google indexed urls are being redirected to the right post now? |
Check the header http://web-sniffer.net/
| Darth Pincho wrote: | | 2) where are the rewrite rules being written? can i put them anywhere? why is best in home folder or in phpbb/ folder? advantages? disadvantages? |
See phpbb_seo_class.php for the URL remapping code. The .htaccess rewrite rules are generated in the ACP. You can use "virtual folders" to inject keywords into your forum URL (e.g., -www.mysite.com/widgets/best-prices-in-nc-t1234.html instead of -www.mysite.com/forums/best-prices-in-nc-t1234.html). I don't know if it significantly affects your SERPs. Can't hurt.
| Darth Pincho wrote: | | 3) I add like 1000 words to the search_ignore_words.php im rebuilding search right now. I have to check anything else regarding to this??? |
No. A cleaner search index does generate better meta keywords.
| Darth Pincho wrote: | | 4) You know how to allow html in phpbb3.0?? i dont have idea. Is earch in google and do not find anything. Can you give me some link with an exlanation? |
No, that was very intentionally removed. You could modify the base code to put it back, but I would not recommend it.
| Darth Pincho wrote: | | I have to keep some of the old rules too??? |
When I migrated, I kept the same URL scheme (advanced) and intentionally did not use virtual folders to avoid too much change at once. Later I'll probably enable virtual folders. For the specifics of your install, I will defer to dcz. |
_________________ Dan Kehn |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Sun Mar 23, 2008 2:50 pm Post subject: Re: Great work. Some questions |
|
|
To enable redirecting of forums and topic, in your case you'll only need to replace :
| Code: | | RewriteRule ^foro/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /foro/viewforum.php?f=$1&start=$3 [QSA,L,NC] |
with :
| Code: |
RewriteRule ^foro/[a-z0-9_-]*-v?f([0-9]+)(-([0-9]+))?\.html$ /foro/viewforum.php?f=$1&start=$3 [QSA,L,NC] |
and :
| Code: | | RewriteRule ^foro/[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?t=$1&start=$3 [QSA,L,NC] |
with :
| Code: | | RewriteRule ^foro/[a-z0-9_-]*/?[a-z0-9_-]*-v?t([0-9]+)(-([0-9]+))?\.html$ /foro/viewtopic.php?t=$1&start=$3 [QSA,L,NC] |
since the only real change is the delimiter (-vt to -t and -vf to -f). And the zero dupe will do the rest
Post url will stay the same, for member's profile url, you can add :
| Code: | | RewriteRule ^foro/member([0-9]+)\.html$ /foro/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC] |
after :
| Code: |
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES |
But, from what I see in your old .htaccess, it seems you did not use profile rewriting.
++ |
_________________ 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 |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|