Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1027 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  Problème Rewriting .htaccess

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Problème Rewriting .htaccess

n°1872583
kvf300
Posté le 14-04-2009 à 03:58:55  profilanswer
 

Bonjour
 
J'essaye depuis quelques heures à configurer mon forum SEO_phpbb3 mais j'ai des problèmes. Après avoir installer mon forum j'ai essayé de configurer la partie SEO de mon forum mais rien ne fonctionne. J'ai quasiment tout activé et j'ai un fichier .htaccess qui ressemble à ça:

Code :
  1. # Lines That should already be in your .htacess
  2.     <Files "config.php">
  3.     Order Allow,Deny
  4.     Deny from All
  5.     </Files>
  6.     <Files "common.php">
  7.     Order Allow,Deny
  8.     Deny from All
  9.     </Files>
  10. # BEGIN WPSuperCache
  11. <IfModule mod_rewrite.c>
  12. RewriteEngine On
  13. RewriteBase /
  14. AddDefaultCharset UTF-8
  15. RewriteCond %{REQUEST_URI} !^.*[^/]$
  16. RewriteCond %{REQUEST_URI} !^.*//.*$
  17. RewriteCond %{REQUEST_METHOD} !=POST
  18. RewriteCond %{QUERY_STRING} !.*=.*
  19. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
  20. RewriteCond %{HTTP:Accept-Encoding} gzip
  21. RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
  22. RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
  23. RewriteCond %{REQUEST_URI} !^.*[^/]$
  24. RewriteCond %{REQUEST_URI} !^.*//.*$
  25. RewriteCond %{REQUEST_METHOD} !=POST
  26. RewriteCond %{QUERY_STRING} !.*=.*
  27. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
  28. RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
  29. RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
  30. </IfModule>
  31. # END WPSuperCache
  32. # BEGIN WordPress
  33. <IfModule mod_rewrite.c>
  34. RewriteEngine On
  35. RewriteBase /
  36. RewriteCond %{REQUEST_FILENAME} !-f
  37. RewriteCond %{REQUEST_FILENAME} !-d
  38. RewriteRule . /index.php [L]
  39. </IfModule>
  40. # END WordPress
  41.     # You may need to un-comment the following lines
  42.     # Options +FollowSymlinks
  43.     # To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
  44.     # Options -MultiViews
  45.     # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
  46. <IfModule mod_rewrite.c>
  47.     Options -Multiviews
  48.     RewriteEngine On
  49.     # REWRITE BASE
  50.     RewriteBase /
  51.     # HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION
  52.     #####################################################
  53.     # PHPBB SEO REWRITE RULES - MIXED
  54.     #####################################################
  55.     # AUTHOR : dcz www.phpbb-seo.com
  56.     # STARTED : 01/2006
  57.     #################################
  58.     # FORUMS PAGES
  59.     ###############
  60.     # FORUM INDEX
  61.     RewriteRule ^forum\.html$ /forum/index.php [QSA,L,NC]
  62.     # FORUM
  63.     RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
  64.     # TOPIC WITH VIRTUAL FOLDER
  65.     RewriteRule ^[a-z0-9_-]*-f([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
  66.     # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
  67.     RewriteRule ^annonces/topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
  68.     # TOPIC WITHOUT FORUM ID & DELIM
  69.     RewriteRule ^([a-z0-9_-]*)/?topic([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
  70.     # PROFILES SIMPLE
  71.     RewriteRule ^membre([0-9]+)/$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
  72.     # USER MESSAGES SIMPLE
  73.     RewriteRule ^membre([0-9]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /forum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
  74.     # GROUPS SIMPLE
  75.     RewriteRule ^groupe([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
  76.     # POST
  77.     RewriteRule ^post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
  78.     # ACTIVE TOPICS
  79.     RewriteRule ^sujets-actifs(-([0-9]+))?\.html$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
  80.     # UNANSWERED TOPICS
  81.     RewriteRule ^sans-reponses(-([0-9]+))?\.html$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
  82.     # NEW POSTS
  83.     RewriteRule ^nouveaux-messages(-([0-9]+))?\.html$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
  84.     # THE TEAM
  85.     RewriteRule ^equipe\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
  86.     # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
  87.     # FORUM WITHOUT ID & DELIM
  88.     # THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
  89.     RewriteCond %{REQUEST_FILENAME} !-f
  90.     RewriteCond %{REQUEST_FILENAME} !-d
  91.     RewriteRule ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
  92.     # END PHPBB PAGES
  93.     #####################################################
  94. </IfModule>
  95. SetEnv PHP_VER 5


 
Mon fichier .htaccess est placé à la racine de mon site ( je n'en ai qu'un seul) et mon forum est placé dans le dossier forum.
(PS: Mon site est sous Wordpress)
 
Mon premier problème arrive dès que je décide d'accéder à mon forum (en allant sur http://www.monsite.com/forum) ; en effet je tombe sur une erreur 404 ( dans la barre d'adresse s'affiche forum.html mais je tombe sur une erreur 404, je n'arrive pas sur http://www.monsite.com/forum/index.php  )
 
Merci de m'aider et de me dire où il y a une erreur dans mon fichier .htaccess qui est bien placé à la racine de mon site.
 
Je ne sais pas s'il s'agit d'un problème de redirection ou de réecriture.
 
kvf300

mood
Publicité
Posté le 14-04-2009 à 03:58:55  profilanswer
 

n°1873016
kvf300
Posté le 14-04-2009 à 22:30:14  profilanswer
 

up


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  Problème Rewriting .htaccess

 

Sujets relatifs
Problème script php ajouter valeurCréation macro VBA - Problème tordu
Problème cookieProblème pour compiler un projet sous Linux
Problème d'upload d'imagesproblème de récupération de données
Problème de link étrangeProblème SQL
Problème récupération informations base de données[URL Rewriting] Problème de .htaccess sous Apache 2 ...
Plus de sujets relatifs à : Problème Rewriting .htaccess


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR