[Mod intermédiaire] Problème changement de page

Support et discussions sur les différentes téchniques de réécriture d'url (url rewriting) pour phpBB2.

Modérateur: Modérateurs

[Mod intermédiaire] Problème changement de page

Messagede fred_du_41 » Mar Aoû 15, 2006 10:59 pm

Bonsoir à tous :wink:

Voilà j'ai un problème lorsque je veux changer de page sur un forum qui dépasse le nombre de sujets autorisés. Lorsque je clique sur page suivante ou page N° 2 et bien je reste bloqué sur la première page :?

pour exemple : http://www.photos-entre-amis.com/macro-proxi-vf17.html

Là par contre je vois tous mes sujets : http://www.photos-entre-amis.com/la-cri ... icdays=364

Merci d'avance de m'aider à trouver la solution :D
fred_du_41
PR1
PR1
 
Messages: 169
Inscription: Dim Juin 18, 2006 8:49 am

Publicité

Messagede dcz » Mer Aoû 16, 2006 1:01 am

Donc, je pense que tu as effectivement un souci de rewriterule pour la pagination des forums, il faudrait vérifier ton .htaccess car là -http://www.photos-entre-amis.com/la-critique-photographique-vf17-40.html = -http://www.photos-entre-amis.com/la-critique-photographique-vf17.html

Ca marche pour les sujets, ce doit être trois fois rien, genre elle est pas là ou avec un chemin erroné.

Envois ton .htaccess en cas ;)

++
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: 21238
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede fred_du_41 » Mer Aoû 16, 2006 5:34 am

dcz a écrit:Envois ton .htaccess en cas ;)
++


Le voilà :wink:

Code: Tout sélectionner
DirectoryIndex portal.php index.php
Options +FollowSymlinks
RewriteEngine On
RewriteBase /

#Pour que example.com soit changé en www.example.com sur tout votre site
RewriteCond %{HTTP_HOST} !^www.photos-entre-amis\.com [NC]
RewriteRule ^(.*) http://www.photos-entre-amis.com/$1 [QSA,R=301,L]

RewriteRule ^.+/([^/]+\.html)$ /$1 [R=301,L]

RewriteRule ^/ftopic([0-9]+)-(.*)-([0-9]+)\.html /ftopic$1-$3.html [R=301,L]

RewriteRule [.]*-vf([0-9]*) /viewforum.php?%{QUERY_STRING}&f=$1
RewriteRule [.]*-vp([0-9]*) /viewtopic.php?%{QUERY_STRING}&p=$1
RewriteRule [.]*-vt([0-9]*) /viewtopic.php?%{QUERY_STRING}&t=$1
RewriteRule [.]*-vc([0-9]*) /index.php?%{QUERY_STRING}&c=$1
RewriteRule [.]*-ac([0-9]*) /album_cat.php?%{QUERY_STRING}&cat_id=$1
RewriteRule [.]*-at([0-9]*) /album_thumbnail.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apic([0-9]*) /album_pic.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apm([0-9]*) /album_picm.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-full-asp([0-9]*) /album_showpage.php?full=&pic_id=$1
RewriteRule [.]*-asp([0-9]*) /album_showpage.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-aper([0-9]*) /album_personal.php?%{QUERY_STRING}&user_id=$1
RewriteRule [.]*-dc([0-9]*) /dload.php?%{QUERY_STRING}action=category&cat_id=$1
RewriteRule [.]*-df([0-9]*) /dload.php?%{QUERY_STRING}action=file&file_id=$1
RewriteRule [.]*-kbc([0-9]*) /kb.php?%{QUERY_STRING}mode=cat&cat=$1
RewriteRule [.]*-kba([0-9]*) /kb.php?%{QUERY_STRING}mode=article&k=$1
RewriteRule [.]*-kbsmp /kb.php?mode=stats&stats=mostpopular
RewriteRule [.]*-kbstr /kb.php?mode=stats&stats=toprated
RewriteRule [.]*-kbsl /kb.php?mode=stats&stats=latest
RewriteRule [.]*-pbc([0-9]*) /kb.php?%{QUERY_STRING}mode=cat&cat=$1
RewriteRule [.]*-pa([0-9]*) /kb.php?%{QUERY_STRING}mode=article&k=$1
RewriteRule [.]*-psmp /kb.php?mode=stats&stats=mostpopular
RewriteRule [.]*-pstr /kb.php?mode=stats&stats=toprated
RewriteRule [.]*-pbsl /kb.php?mode=stats&stats=latest

#########################################################
# 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 ^membre([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

#########################################################
# MX GG_SITEMAPS REWRITE RULES            #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################

########################################################

RewriteRule ^sitemaps.xml$ /sitemap.php [L]
RewriteRule ^mx-sitemap.xml$ /sitemap.php?mx [L]
RewriteRule ^forum-sitemap-([0-9]+).xml$ /sitemap.php?fid=$1 [L]
RewriteRule ^kb-sitemap-([0-9]+).xml$ /sitemap.php?kbid=$1 [L]
RewriteRule ^sitemap-forum.xml$ /sitemap.php?forum [L]
RewriteRule ^sitemap-kbcat.xml$ /sitemap.php?kbcat [L]
#RewriteRule ^sitemap.xml$ /sitemap.php?terme [L]

#########################################################
# END GG_SITEMAPS REWRITE RULES            #
#########################################################

#########################################################
# MX SITEMAPS REWRITE RULES ADVANCED #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/04/28
########################################################

RewriteRule ^sitemaps([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]
RewriteRule ^sitemaps\.html$ /sitemaps.php [QSA,L]
RewriteRule ^forum-m\ap\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^.+-fmp([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^.+-fmp([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^.+-sc([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]

#########################################################
# END SITEMAPS REWRITE RULES #
#########################################################


fred_du_41
PR1
PR1
 
Messages: 169
Inscription: Dim Juin 18, 2006 8:49 am

Messagede dcz » Mer Aoû 16, 2006 8:29 am

Ah bah oui, tu as comme qui dirait deux séries des règles provenant pas du même endroit.

Il y des truc qui te servent la dedans ?
Code: Tout sélectionner
RewriteRule [.]*-vf([0-9]*) /viewforum.php?%{QUERY_STRING}&f=$1
RewriteRule [.]*-vp([0-9]*) /viewtopic.php?%{QUERY_STRING}&p=$1
RewriteRule [.]*-vt([0-9]*) /viewtopic.php?%{QUERY_STRING}&t=$1
RewriteRule [.]*-vc([0-9]*) /index.php?%{QUERY_STRING}&c=$1
RewriteRule [.]*-ac([0-9]*) /album_cat.php?%{QUERY_STRING}&cat_id=$1
RewriteRule [.]*-at([0-9]*) /album_thumbnail.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apic([0-9]*) /album_pic.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apm([0-9]*) /album_picm.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-full-asp([0-9]*) /album_showpage.php?full=&pic_id=$1
RewriteRule [.]*-asp([0-9]*) /album_showpage.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-aper([0-9]*) /album_personal.php?%{QUERY_STRING}&user_id=$1
RewriteRule [.]*-dc([0-9]*) /dload.php?%{QUERY_STRING}action=category&cat_id=$1
RewriteRule [.]*-df([0-9]*) /dload.php?%{QUERY_STRING}action=file&file_id=$1
RewriteRule [.]*-kbc([0-9]*) /kb.php?%{QUERY_STRING}mode=cat&cat=$1
RewriteRule [.]*-kba([0-9]*) /kb.php?%{QUERY_STRING}mode=article&k=$1
RewriteRule [.]*-kbsmp /kb.php?mode=stats&stats=mostpopular
RewriteRule [.]*-kbstr /kb.php?mode=stats&stats=toprated
RewriteRule [.]*-kbsl /kb.php?mode=stats&stats=latest
RewriteRule [.]*-pbc([0-9]*) /kb.php?%{QUERY_STRING}mode=cat&cat=$1
RewriteRule [.]*-pa([0-9]*) /kb.php?%{QUERY_STRING}mode=article&k=$1
RewriteRule [.]*-psmp /kb.php?mode=stats&stats=mostpopular
RewriteRule [.]*-pstr /kb.php?mode=stats&stats=toprated
RewriteRule [.]*-pbsl /kb.php?mode=stats&stats=latest


Efface tout, ou au moins, mais seulement si tu te sert du reste :
Code: Tout sélectionner
RewriteRule [.]*-vf([0-9]*) /viewforum.php?%{QUERY_STRING}&f=$1
RewriteRule [.]*-vp([0-9]*) /viewtopic.php?%{QUERY_STRING}&p=$1
RewriteRule [.]*-vt([0-9]*) /viewtopic.php?%{QUERY_STRING}&t=$1
RewriteRule [.]*-vc([0-9]*) /index.php?%{QUERY_STRING}&c=$1


Et ça marchera :D

++
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: 21238
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede fred_du_41 » Mer Aoû 16, 2006 8:34 am

J'efface tout, je ne garde rien de ce que tu indiques au dessus :shock:

Je voudrai confirmation avant de faire une bêtise :wink:

Merci dcz :wink:
fred_du_41
PR1
PR1
 
Messages: 169
Inscription: Dim Juin 18, 2006 8:49 am

Messagede dcz » Mer Aoû 16, 2006 8:51 am

Et bien ça dépends, il m'a semblé voir quelques URLs réécrites pour smartor, donc ne jette pas tout.

Jette bien les 4 de phpBB et aussi, met les autre à la fin de ton .htaccess, ça ira plus vite pour phpBB.

++
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: 21238
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede fred_du_41 » Mer Aoû 16, 2006 9:02 am

C'est ok dcz :D encore merci :wink:

Mon nouvel .htaccess pour controle 8)

Code: Tout sélectionner
DirectoryIndex portal.php index.php
Options +FollowSymlinks
RewriteEngine On
RewriteBase /

#Pour que example.com soit changé en www.example.com sur tout votre site
RewriteCond %{HTTP_HOST} !^www.photos-entre-amis\.com [NC]
RewriteRule ^(.*) http://www.photos-entre-amis.com/$1 [QSA,R=301,L]

RewriteRule ^.+/([^/]+\.html)$ /$1 [R=301,L]

RewriteRule ^/ftopic([0-9]+)-(.*)-([0-9]+)\.html /ftopic$1-$3.html [R=301,L]

#########################################################
# 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 ^membre([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################

#########################################################
# MX GG_SITEMAPS REWRITE RULES              #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################

########################################################

RewriteRule ^sitemaps.xml$ /sitemap.php [L]
RewriteRule ^mx-sitemap.xml$ /sitemap.php?mx [L]
RewriteRule ^forum-sitemap-([0-9]+).xml$ /sitemap.php?fid=$1 [L]
RewriteRule ^kb-sitemap-([0-9]+).xml$ /sitemap.php?kbid=$1 [L]
RewriteRule ^sitemap-forum.xml$ /sitemap.php?forum [L]
RewriteRule ^sitemap-kbcat.xml$ /sitemap.php?kbcat [L]
#RewriteRule ^sitemap.xml$ /sitemap.php?terme [L]

#########################################################
# END GG_SITEMAPS REWRITE RULES              #
#########################################################

#########################################################
# MX SITEMAPS REWRITE RULES ADVANCED                    #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/04/28
########################################################

RewriteRule ^sitemaps([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]
RewriteRule ^sitemaps\.html$ /sitemaps.php [QSA,L]
RewriteRule ^forum-m\ap\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^.+-fmp([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^.+-fmp([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^.+-sc([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]

#########################################################
# END SITEMAPS REWRITE RULES                            #
#########################################################

#########################################################
# SMARTOR ALBUM                                         #
#########################################################

RewriteRule [.]*-ac([0-9]*) /album_cat.php?%{QUERY_STRING}&cat_id=$1
RewriteRule [.]*-at([0-9]*) /album_thumbnail.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apic([0-9]*) /album_pic.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-apm([0-9]*) /album_picm.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-full-asp([0-9]*) /album_showpage.php?full=&pic_id=$1
RewriteRule [.]*-asp([0-9]*) /album_showpage.php?%{QUERY_STRING}&pic_id=$1
RewriteRule [.]*-aper([0-9]*) /album_personal.php?%{QUERY_STRING}&user_id=$1



fred_du_41
PR1
PR1
 
Messages: 169
Inscription: Dim Juin 18, 2006 8:49 am

Messagede dcz » Mer Aoû 16, 2006 9:09 am

Nickel :D
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: 21238
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede fred_du_41 » Mer Aoû 16, 2006 9:31 am

Hoops encore un petit problème dcz :oops:

lors du changement de page je n'ai pas le bon titre de sous-forum dans l'url :?

http://www.photos-entre-amis.com/macro-proxi-vf17.html

Je fais page suivante et j'obtiens cela

http://www.photos-entre-amis.com/la-cri ... 17-40.html

Il me reprend le titre du forum et pas du sous-forum :cry:

J'utilise le mod simple subforums FR V1.0.1

Encore merci de ton aide :wink:
fred_du_41
PR1
PR1
 
Messages: 169
Inscription: Dim Juin 18, 2006 8:49 am

Messagede dcz » Mer Aoû 16, 2006 9:35 am

C'est un souci dans l'installe de l'add on sub forum, ou une interférence avec announce suite.

++
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: 21238
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede fred_du_41 » Mer Aoû 16, 2006 9:39 am

dcz a écrit:C'est un souci dans l'installe de l'add on sub forum, ou une interférence avec announce suite.

++


Encore merci je regarde ça :wink:

Heuu je ne retrouve plus l'add on pour Subforum, il se trouve où ? :?
fred_du_41
PR1
PR1
 
Messages: 169
Inscription: Dim Juin 18, 2006 8:49 am

Messagede dcz » Mer Aoû 16, 2006 9:41 am

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: 21238
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede fred_du_41 » Mer Aoû 16, 2006 9:47 am

Ok merci je vérifie tout ça :wink:
fred_du_41
PR1
PR1
 
Messages: 169
Inscription: Dim Juin 18, 2006 8:49 am

Messagede dcz » Mer Aoû 16, 2006 9:49 am

Je penche pour l'interférence avec announce suite ;)
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: 21238
Inscription: Ven Avr 28, 2006 9:03 pm

Messagede fred_du_41 » Mer Aoû 16, 2006 10:03 am

dcz a écrit:Je penche pour l'interférence avec announce suite ;)


Moi aussi je viens de vérifier l'add on pour simple subforum et c'est bon mais à priori je n'utilise pas le même mod "announce" que dans le topic que tu indiques.

Je ne trouve pas cette partie
Code: Tout sélectionner
//-- mod : announces ---------------------------------------------------------------------- ---------
//-- add
announces_from_forums(POST_FORUM_URL . $forum_id);
//-- fin mod : announces ---------------------------------------------------------------------- -----

dans mon viewforum :cry:
fred_du_41
PR1
PR1
 
Messages: 169
Inscription: Dim Juin 18, 2006 8:49 am

Suivante

Retourner vers mod Rewrite phpBB2

 


  • Articles en relation
    Réponses
    Vus
    Dernier message

Qui est en ligne

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