J'ai installé SEO ultimate 0.6.0 + No dupe 0.6.0 + Gym 2.0RC5 en local,
Tous semble bien fonctionner sauf les liens vers certains messages, apparemment tous les liens de search (ceux ds le titre des aperçus de sujet) renvient une 404, (que ce soit une recherche générale, ou de la page de résultats de messages d'un membre à profil de son profil)
Exemple de ces liens :
Avec réécriture activé (en local) = 404
- Code: Tout sélectionner
http://example/forum/message4115.htm#p4115
Sans récriture (en ligne pour le meme lien) = OK
- Code: Tout sélectionner
http://www.example.com/forum/viewtopic.php?f=5&t=714&p=4115#p4115
Pour la config rewrite ACP elle est en mode avancée (toutes les options sur oui, sauf racine virtuelle)
Pour la config nodupe ACP elle est en mode avancée (non stricte) + redirection "invité"
Pour la config du setup_phpbb_seo.php , il a été personnalisé code ci-dessous :
// =========================> Delimiters <==========================
// Can be overridden, requires .htaccess update <=
// Example :
// $this->seo_delim['forum'] = '-mydelim'; // instead of the default "-f"
// =======================> Static parts <============================
// Can be overridden, requires .htaccess update.
// Example :
// $this->seo_static['post'] = 'message'; // instead of the default "post"
// !! phpBB files must be treated a bit differently !!
// Example :
// $this->seo_static['file'][ATTACHMENT_CATEGORY_QUICKTIME] = 'quicktime'; // instead of the default "qt"
// $this->seo_static['file_index'] = 'my_files_virtual_dir'; // instead of the default "resources"
// ==> Special for lazy French, others may delete this part
if ( strpos($config['default_lang'], 'fr') !== false ) {
$this->seo_static['forum'] = 'forum'; // the default
$this->seo_static['topic'] = 'sujet'; // instead of the default "topic"
$this->seo_static['post'] = 'message'; // instead of the default "post"
$this->seo_static['user'] = 'membres'; // instead of the default "member"
$this->seo_static['group'] = 'groupes'; // instead of the default "group"
$this->seo_static['index'] = 'index'; // Rajoute index pour portail (prb portail) - instead of the default ""
$this->seo_static['global_announce'] = 'annonces'; // instead of the default "global_announce"
$this->seo_static['leaders'] = 'equipe'; // instead of the default "leader"
$this->seo_static['atopic'] = 'sujets-recents'; // instead of the default "active-topics"
$this->seo_static['utopic'] = 'sans-reponses'; // instead of the default "unanswered"
$this->seo_static['npost'] = 'nouveaux-messages'; // instead of the default "newposts"
$this->seo_static['pagination'] = 'page'; // the default
$this->seo_static['gz_ext'] = '.gz'; // the default
$this->seo_static['file_index'] = 'fichiers'; // instead of the default "resources"
}
// <== Special for lazy French, others may delete this part
// ===========================> Suffixes <============================
// Can be overridden, requires .htaccess update <=
// Example :
// $this->seo_ext['topic'] = '/'; // instead of the default ".html"
$this->seo_ext['forum'] = '.htm'; // the default
$this->seo_ext['topic'] = '.htm'; // instead of the default ".html"
$this->seo_ext['post'] = '.htm'; // instead of the default ".html"
$this->seo_ext['user'] = '/'; // instead of the default ".html"
$this->seo_ext['group'] = '/'; // instead of the default ".html"
$this->seo_ext['index'] = '.php'; // Rajoute suffixe .php pour index (prb portail) - instead of the default ""
$this->seo_ext['global_announce'] = '/'; // instead of the default ".html"
$this->seo_ext['leaders'] = '.htm'; // instead of the default ".html"
$this->seo_ext['atopic'] = '/'; // instead of the default ".html"
$this->seo_ext['utopic'] = '/'; // instead of the default ".html"
$this->seo_ext['npost'] = '/'; // instead of the default ".html"
$this->seo_ext['pagination'] = '.htm'; // // instead of the default ".html"
$this->seo_ext['gz_ext'] = ''; // // the default
// Let's make sure that settings are consistent
$this->check_config();
Et pour le .htacess le voici (sans la partie redirection en www, qui est changée en ligne par rapport à la version locale)
- Code: Tout sélectionner
# DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
#####################################################
# PHPBB SEO REWRITE RULES ALL MODES
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^forum\.php$ /forum/index.php [QSA,L,NC]
# FORUM ALL MODES
RewriteRule ^forum/(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.htm)?$ /forum/viewforum.php?f=$2&start=$4 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^forum/(forum|[a-z0-9_-]*-f)([0-9]+)/(sujet|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.htm$ /forum/viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^forum/annonces/(sujet|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.htm$ /forum/viewtopic.php?t=$2&start=$4 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^forum/([a-z0-9_-]*)/?(sujet|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.htm$ /forum/viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
# PHPBB FILES ALL MODES
RewriteRule ^forum/fichiers/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /forum/download/file.php?id=$2&t=$1 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^forum/membres/([^/]+)/?$ /forum/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^forum/membres/([^/]+)/(topics|posts)/?(page([0-9]+)\.htm)?$ /forum/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ALL MODES
RewriteRule ^forum/(groupes|[a-z0-9_-]*-g)([0-9]+)/?(page([0-9]+)\.htm)?$ /forum/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
# POST
RewriteRule ^forum/message([0-9]+)/$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^forum/sujets-recents/?(page([0-9]+)\.htm)?$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^forum/sans-reponses/?(page([0-9]+)\.htm)?$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^forum/nouveaux-messages/?(page([0-9]+)\.htm)?$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^forum/equipe\.htm$ /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]+)\.htm)?$ /map.php?$1&start=$3 [QSA,L,NC]
# END GYM Sitemaps & RSS
####################################################
#####################################################
# 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]+)\.htm)?$ /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]{1}([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]{1})([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
#####################################################
# FORUM WITHOUT ID & DELIM ALL MODES (SAME DELIM)
# THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^forum/([a-z0-9_-]+)/?(page([0-9]+)\.htm)?$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
Voila, à priori j'ai ré vérifié search.ph qui semble correct, toutes les autres redirections d'ultimate fonctionnent à merveille, ainsi que gym
Sauf ce lien
Du coup j'ai désactivé le rewrite sur la version en ligne, le tps que ce prb se règle mais je ne vois pas trop d'ou ca pourrait venir,
Merci d'avance

Français |
Anglais

