Migration PHPBB2 vers PHPBB3

Le forum de support du mod de réécriture d'URL pour phpBB3 en version Avancée.
Ce mod de réécriture d'url injecte les titres forums et des sujets dans leurs URLs.

Modérateur: Modérateurs

Migration PHPBB2 vers PHPBB3

Messagede LagunaPower » Dim Nov 30, 2008 4:50 pm

Bonjour,

Je vais bientot migrer mon vieillissant forum phpbb2 vers phpbb3 (premod 3.03).

Mon forum utilise actuellement le mod rewrite Avancé 0.2.2 GYM 1.2 et Mx Sitemap.

J'utiliserai le mod rewrite avancé ainsi que GYM 2.0 (avec les fichiers à la racine)

Que dois je fais au niveau du .htaccess pour ne pas perdre le bénéfice de mon reférencement ?

.htaccess PHPBB2
Code: Tout sélectionner
Options +FollowSymlinks
CheckSpelling On
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} !www.renault-laguna.com$ [NC]
RewriteRule ^(.*) http://www.renault-laguna.com/$1 [QSA,L,R=301]

#########################################################
# forum SEO REWRITE RULES                               #
#########################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^forum/[a-z0-9_-]+/([^/]+\.html)$ forum/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^forum/[a-z0-9_-]+-vc([0-9]+)\.html$ forum/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum/[a-z0-9_-]+-vf([0-9]+)-([0-9]+)\.html$ forum/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum/[a-z0-9_-]+-vf([0-9]+)\.html$ forum/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum/[a-z0-9_-]+-vt([0-9]+)-([0-9]+)\.html$ forum/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/[a-z0-9_-]+-vt([0-9]+)\.html$ forum/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ forum/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/membre([0-9]+)\.html$ forum/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END forum PAGES

#########################################################
# SMARTOR ALBUM REWRITE RULES                           #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2007/02/22
########################
# ALBUM INDEX
RewriteRule ^forum/album\.html$ /forum/album.php [QSA,L,NC]
# ALBUM PAGINATED CAT
RewriteRule ^forum/[a-z0-9_-]+-ac([0-9]+)-([0-9]+)\.html$ /forum/album_cat.php?cat_id=$1&start=$2 [QSA,L,NC]
# ALBUM CAT
RewriteRule ^forum/[a-z0-9_-]+-ac([0-9]+)\.html$ /forum/album_cat.php?cat_id=$1 [QSA,L,NC]
# ALBUM PIC
RewriteRule ^forum/[a-z0-9_-]+-sp([0-9]+)\.html$ /forum/album_page.php?pic_id=$1 [QSA,L,NC]
# PERSONAL USER CAT PAGINATED
RewriteRule ^forum/[a-z0-9_-]+-ap([0-9]+)-([0-9]+)\.html$ /forum/album_personal.php?user_id=$1&start=$2 [QSA,L,NC]
# PERSONAL USER CAT
RewriteRule ^forum/[a-z0-9_-]+-ap([0-9]+)\.html$ /forum/album_personal.php?user_id=$1 [QSA,L,NC]
# PAGINATED COMMENT
RewriteRule ^forum/[a-z0-9_-]+-sr([0-9]+)-([0-9]+)\.html$ /forum/album_comment.php?pic_id=$1&start=$2 [QSA,L,NC]
# COMMENT
RewriteRule ^forum/[a-z0-9_-]+-sr([0-9]+)\.html$ /forum/album_comment.php?pic_id=$1 [QSA,L,NC]
# PERSONAL CAT PAGINATED
RewriteRule ^forum/galeries-membre-([0-9]+)\.html$ /forum/album_personal_index.php?start=$1 [QSA,L,NC]
# PERSONAL CAT
RewriteRule ^forum/galeries-membre\.html$ /forum/album_personal_index.php [QSA,L,NC]
# THUMBNAILS
RewriteRule ^forum/[a-z0-9_-]+-thumb([0-9]+)\.jpg$ /forum/album_thumbnail.php?pic_id=$1 [QSA,L,NC]
# FULL
RewriteRule ^forum/[a-z0-9_-]+-pic([0-9]+)\.jpg$ /forum/album_pic.php?pic_id=$1 [QSA,L,NC]
#########################################################

#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES                    #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ rss.php?$1&$2 [L,NC]
# RSS forums
RewriteRule ^forums-rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ rss.php?forum&c&$1&$2 [L,NC]
# RSS all
RewriteRule ^([a-zA-Z0-9_-]+)-rss([0-9]*)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ rss.php?$1=$2&$3&$4 [L,NC]
# RSS forum topics
RewriteRule ^.+-rf([0-9]+)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ rss.php?forum=$1&$2&$3 [L,NC]
# SitemapIndex
RewriteRule ^sitemaps\.(xml(\.gz)?)$ sitemap.php [L,NC]
# Sitemap modules
RewriteRule ^([a-zA-Z0-9_-]+)-sitemap\.(xml(\.gz)?)$ sitemap.php?$1 [L,NC]

# Forum Sitemaps
RewriteRule ^.+-gf([0-9]+)\.(xml(\.gz)?)$ sitemap.php?forum=$1 [L,NC]
# Yahoo! urllist.txt
RewriteRule ^urllist\.(txt(\.gz)?)$ urllist.php [L,NC]
# SITEMAP SITE XML
RewriteRule ^([a-zA-Z0-9_-]+)-gx-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /sitemap.php?xml=$1&$2&$3 [L,NC]
# SITEMAP SITE TXT
RewriteRule ^([a-zA-Z0-9_-]+)-gt-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /sitemap.php?txt=$1&$2&$3 [L,NC]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES                #
#########################################################

#########################################################
# MX SITEMAPS REWRITE RULES                             #
#########################################################
RewriteRule ^forum/sitemaps([0-9]+)\.html$ /forum/sitemaps.php?c=$1 [QSA,L]
RewriteRule ^forum/sitemaps\.html$ /forum/sitemaps.php [QSA,L]
RewriteRule ^forum/forum-map\.html$ /forum/sitemaps.php?fim [QSA,L]
RewriteRule ^forum/.+-fmp([0-9]+)-([0-9]+)\.html$ /forum/sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^forum/.+-fmp([0-9]+)\.html$ /forum/sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^forum/.+-sc([0-9]+)\.html$ /forum/sitemaps.php?c=$1 [QSA,L]


Merci de votre aide :wink:
LagunaPower
PR1
PR1
 
Messages: 156
Inscription: Mar Aoû 29, 2006 1:38 pm
Localisation: Toulon, 83

Publicité

Messagede SeO » Lun Déc 01, 2008 10:07 am

Pour GYM, la procédure est décrite dans la partie :
Code: Tout sélectionner
_______________________
===>  Mise à jour  <===
_______________________

du :
Code: Tout sélectionner
#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#


Pour les liens de phpBB3, cela dépends des réglages que tu choisiras pour phpBB3.

Dans le cas générale, il faut conserver les rewriterules de phpBB2 en état de marche et les lier au scripts de phpBB3 pour que le zéro duplicate fasse son travail, mais il est souvent possible de faire moins lourd.

Donc, je te conseille de tester la conversion en local, et de poster ici ton .htaccess de phpBB3 une fois que tu a bien choisi tous tes réglages de réécriture d'url.

Et on te dira quoi faire ;)
SeO
Admin
Admin
 
Messages: 6334
Inscription: Mer Mar 15, 2006 9:41 pm

Messagede LagunaPower » Jeu Déc 04, 2008 4:29 pm

bonsoir,

merci de ta réponse.

La conversion c'est bien déroulée.

Voici le .htaccess de mon forum sous phpbb3

Code: Tout sélectionner
#####################################################
# 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 ^forum/forum\.html$ /forum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^forum/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^forum/annonces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^forum/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES ADVANCED
RewriteRule ^forum/[a-z0-9_-]*-u([0-9]+)\.html$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES ADVANCED
RewriteRule ^forum/[a-z0-9_-]*-u([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /forum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^forum/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^forum/sujets-actifs(-([0-9]+))?\.html$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^forum/sans-reponses(-([0-9]+))?\.html$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^forum/nouveaux-messages(-([0-9]+))?\.html$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^forum/equipe\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

#####################################################
# GYM Sitemaps & RSS
# Global channels
# NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
# BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
# WITH PROPER SLASHES AND PATHS
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /gymrss.php?channels&$2&$4&$6 [QSA,L,NC]
# HTML Global news & maps
# NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
# BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
# WITH PROPER SLASHES AND PATHS
RewriteRule ^(news|maps)/?(page([0-9]+)\.html)?$ /map.php?$1&start=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
#####################################################

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^forum/([a-z0-9_-]+)(-([0-9]+))\.html$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^forum/([a-z0-9_-]+)\.html$ /forum/viewforum.php?forum_uri=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################

#####################################################
# GYM Sitemaps & RSS
# HTML Module additional modes
# NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
# BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
# WITH PROPER SLASHES AND PATHS
RewriteRule ^(news|maps)/([a-z0-9_-]+)(/([a-z0-9_-]+))?/?(page([0-9]+)\.html)?$ /map.php?$2=$4&$1&start=$6 [QSA,L,NC]
# Main feeds & channels
# NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
# BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
# WITH PROPER SLASHES AND PATHS
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$9=$8&$2&$4&$6&gzip=$10 [QSA,L,NC]
# Module feeds
# NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
# BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
# WITH PROPER SLASHES AND PATHS
RewriteRule ^[a-z0-9_-]*-[a-z]+([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?$8=$1&$3&$5&$7&gzip=$9 [QSA,L,NC]
# Module feeds without ids
# NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
# BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
# WITH PROPER SLASHES AND PATHS
RewriteRule ^([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$ /gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 [QSA,L,NC]
# Google SitemapIndex
# NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
# BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
# WITH PROPER SLASHES AND PATHS
RewriteRule ^sitemapindex\.xml(\.gz)?$ /sitemap.php?gzip=$1 [QSA,L,NC]
# Module cat sitemaps
# NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
# BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
# WITH PROPER SLASHES AND PATHS
RewriteRule ^[a-z0-9_-]+-([a-z]+)([0-9]+)\.xml(\.gz)?$ /sitemap.php?module_sep=$1&module_sub=$2&gzip=$3 [QSA,L,NC]
# Module sitemaps
# NOTE : THE FOLLOWING REWRITERULE IS LEFT COMMENTED BECAUSE IT CANNOT
# BE IMPLEMENTED IN THIS .HTACCESS, BUT RATHER IN AN ABOVE ONE
# WITH PROPER SLASHES AND PATHS
RewriteRule ^([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$ /sitemap.php?$1=$2&gzip=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
#####################################################
LagunaPower
PR1
PR1
 
Messages: 156
Inscription: Mar Aoû 29, 2006 1:38 pm
Localisation: Toulon, 83

Messagede dcz » Sam Déc 06, 2008 1:16 pm

Donc pour les urls des phpBB2, il faudra que tu conserves :

Code: Tout sélectionner
# CATEGORIES
RewriteRule ^forum/[a-z0-9_-]+-vc([0-9]+)\.html$ forum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^forum/[a-z0-9_-]+-vf([0-9]+)(-([0-9]+))?\.html$ forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC
RewriteRule ^forum/[a-z0-9_-]+-vt([0-9]+)(-([0-9]+))?\.html$ forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
#PROFILES
RewriteRule ^forum/membre([0-9]+)\.html$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]


a la fin de ton .htaccess.

Pour smartor, il faudrait au moins tout rediriger vers l'index de la nouvelle gallerie, ou attendre le patch pour le mod gallery.
Pour l'index cela donnerait :
Code: Tout sélectionner
# smartor
RewriteRule ^forum/[a-z0-9_-]*-(sr|ac|sp|ap|pic|thumb)[0-9]+(-[0-9]+)?\.html$ /forum/gallery/index.php [L,NC,R=301]
RewriteRule ^forum/(album|galeries-membre)(-[0-9]+)?\.html$ /forum/gallery/index.php [L,NC,R=301]


++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Messages: 21428
Inscription: Ven Avr 28, 2006 9:03 pm


Retourner vers Réécriture URL Avancée

 


  • Articles en relation
    Réponses
    Vus
    Dernier message

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité