2 forums sur meme hébergeur, htaccess?

Nouveau WRInaute
Bonjour à tous :)

Mon probleme c'est que j'ai un hébergeur mutualisé chez OVH et que j'ai deux site différent dessus.

Sur le premier j'ai un forum PHPBB que j'ai rewrité grace aux tutos de phpbb, et j'aimerai faire pareil avec le second en ajoutant les lignes a la suite de mon htaccess.

Voici le contenu de mon htaccess pour mon premier forum

Code:
Options +FollowSymlinks 

RewriteEngine On 

#this may cause isues with subdirs and so I have not enabled it. 
RewriteBase /naruto/interactif 

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

Et j'ai essayé d'ajouter a la suite les lignes pour mon second forum:

Code:
RewriteBase /weba2bal/forum 

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

Mais cela ne fonctionne pas. Je suppose que je doit rajouter une ligne afin de préciser qu'il s'agit de deux site différents?
 
WRInaute accro
Pourquoi tu colles un seul .htaccess à la racine de ton site ?

Il serait préférable de coller un .htaccess par sous dossier.
 
Nouveau WRInaute
ca marche impeccable, merci à toi pour l'info, j'etais persuadé que le fichier devait etre obligatoirement a la racine ^^
 

➡️ Offre MyRankingMetrics ⬅️

pré-audit SEO gratuit avec RM Tech (+ avis d'expert)
coaching offert aux clients (avec Olivier Duffez ou Fabien Faceries)

Voir les détails ici

coaching SEO
Discussions similaires
Haut