Tout dabord merci à tout ceux d'entre vous qui prenez de votre temps pour répondre au problèmes des autres.
Je n'arrive pas à activer le mode rewrite sur mon forum, j'ai effectuer plusieurs essais avec des conseils pris dans le forums. Je vais essayer de fournir un max d'info pour que vous puissiez m'aider.
-J'ai vérifier avec mon hosting et la fonction rewritte est activer sur leurs servers par défaut
Protocole du serveur: http://
Nom de domaine: -forum.web-docteur.com ( le - n'est pas présent c'est seulement pour obéir aux règles du forum )
Chemin du script: /phpBB
J'ai générer le fichier htaccess dans mon dossier phpbb_seo et je l'ai déplacer à la racine de mon server, dans le sous-domaine ou j'ai installé mon forum.
voici mon fichier htaccess
- Code: Tout sélectionner
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
# You may need to un-comment the following lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^forum\.web-docteur\.com$ [NC]
# RewriteRule ^(.*)$ http://forum.web-docteur.com/$1 [QSA,L,R=301]
# 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 WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^phpBB/forum\.html$ /phpBB/index.php [QSA,L,NC]
# FORUM ALL MODES
RewriteRule ^phpBB/(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ /phpBB/viewforum.php?f=$2&start=$4 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^phpBB/(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /phpBB/viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^phpBB/annonces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /phpBB/viewtopic.php?t=$2&start=$4 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^phpBB/([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /phpBB/viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
# PHPBB FILES ALL MODES
RewriteRule ^phpBB/ressources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /phpBB/download/file.php?id=$2&t=$1 [QSA,L,NC]
# PROFILES ALL MODES WITH ID
RewriteRule ^phpBB/(membre|[a-z0-9_-]*-u)([0-9]+)\.html$ /phpBB/memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
# USER MESSAGES ALL MODES WITH ID
RewriteRule ^phpBB/(membre|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /phpBB/search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
# GROUPS ALL MODES
RewriteRule ^phpBB/(groupe|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /phpBB/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
# POST
RewriteRule ^phpBB/post([0-9]+)\.html$ /phpBB/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^phpBB/sujets-actifs(-([0-9]+))?\.html$ /phpBB/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^phpBB/sans-reponses(-([0-9]+))?\.html$ /phpBB/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^phpBB/nouveaux-messages(-([0-9]+))?\.html$ /phpBB/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^phpBB/equipe\.html$ /phpBB/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
# FORUM WITHOUT ID & DELIM ALL MODES (SAME DELIM)
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^phpBB/([a-z0-9_-]+)(-([0-9]+))\.html$ /phpBB/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^phpBB/([a-z0-9_-]+)\.html$ /phpBB/viewforum.php?forum_uri=$1 [QSA,L,NC]
# FIX RELATIVE PATHS : FILES
RewriteRule ^phpBB/.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /phpBB/$1 [QSA,L,NC,R=301]
# FIX RELATIVE PATHS : IMAGES
RewriteRule ^phpBB/.+/(styles/.*|images/.*)/$ /phpBB/$1 [QSA,L,NC,R=301]
# END PHPBB PAGES
#####################################################
Merci de bien vouloir vérifier mon fichier htaccess et me donner les correctifs nécessaires.
En passant il y a un lien biz dans mon forum, ( { SEARCH_UNREAD } ) mais je ne pense pas que ca ai un lien.
Merci a tous
Frédéric Pelletier, webmestre du site -ww.web-docteur.com-

Français |
Anglais
