Bonjour,
je debute avec pbpBB ... Je suis en phpBB2 avec mod rewrite inermédiare, dynamic_meta_tagsV0-2-0 et j'essaye de faire fonctionner gym_sitemapsV1-2-0RC4 qui fonctionnait bien seul avant l'installation du mod de meta et de rewrite)
Mon probleme: Après avoir installé les 3 mods précédents (dans l'ordre), quand j'appelle rss.php, j'obtiens un beau fichier xml avec mes derniers articles ... mais quand je les clique, l'URL du lien retoure une erreur 404.
Les URLs de mon forum sont de la forme:
-http://www.monsite.com/forum-blog/viewtopic.php?t=778
Les URLs fournis par le RSS (ou le sitemap ou l'URLlist) sont de la forme:
-http://www.monsite.com/forum-blog/topic778.html
J'ai l'impression que ça vient du .htaccess mais je ne trouve rien car je n'y connait pas bcp ...
pouvez-vous m'aider svp ?
Mon .htaccess ci-dessous (dont le première partie est pour mon site à la racine qui fonctionne avec le CMS joomla):
##
# @version $Id: htaccess.txt 2368 2006-02-14 17:40:02Z stingrey $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
# Only use one of the two SEF sections that follow. Lines that can be uncommented
# (and thus used) have only one #. Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
# For Standard SEF, use the standard SEF section. You can comment out
# all of the RewriteCond lines and reduce your server's load if you
# don't have directories in your root named 'component' or 'content'
#
# If you are using a 3rd Party SEF or the Core SEF solution
# uncomment all of the lines in the '3rd Party or Core SEF' section
#
#####################################################
##### SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented. If you are running your Joomla/Mambo from
# a subdirectory the name of the subdirectory will need to be inserted into this
# line. For example, if your Joomla/Mambo is in a subdirectory called '/test/',
# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes##
#
#####################################################
## Can be commented out if causes errors, see notes above.
#Options FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)
# RewriteBase
########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End Standard SEF Section
########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
#
########## End 3rd Party or Core SEF Section
php_flag register_globals off
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum-blog/index\.html$ /forum-blog/index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^forum-blog/[a-z0-9_-]+/([^/]+\.html)$ /forum-blog/index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^forum-blog/[a-z0-9_-]*-c([0-9]+)\.html$ /forum-blog/index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^forum-blog/[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /forum-blog/viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^forum-blog/[a-z0-9_-]*-f([0-9]+)\.html$ /forum-blog/viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^forum-blog/topic([0-9]+)-([0-9]+)\.html$ /forum-blog/viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^forum-blog/topic([0-9]+)\.html$ /forum-blog/viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^forum-blog/post([0-9]+)\.html$ /forum-blog/viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^forum-blog/membre([0-9]+)\.html$ /forum-blog/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^forum-blog/rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum-blog/rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^forum-blog/forums-rss-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum-blog/rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^forum-blog/([a-zA-Z0-9_-]+)-rss([0-9]*)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum-blog/rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^forum-blog/.+-rf([0-9]+)-?(l|s)?-?(m)?\.(xml(\.gz)?)$ /forum-blog/rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^forum-blog/sitemaps\.(xml(\.gz)?)$ /forum-blog/sitemap.php [L]
# Sitemap modules
RewriteRule ^forum-blog/([a-zA-Z0-9_-]+)-sitemap\.(xml(\.gz)?)$ /forum-blog/sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^forum-blog/.+-gf([0-9]+)\.(xml(\.gz)?)$ /forum-blog/sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^forum-blog/urllist\.(txt(\.gz)?)$ /forum-blog/urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES #
#########################################################

Français |
Anglais
