2 forums sur meme hébergeur, .htaccess?

Consultez la formation URL Rewriting et sites dynamiques de WebRankInfo / Ranking Metrics


saico
Nouveau WRInaute
Nouveau WRInaute
 
Messages: 27
Inscription: 5 Oct 2005

2 forums sur meme hébergeur, .htaccess?

Message le Mer Oct 05, 2005 11:28

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: Tout sélectionner
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: Tout sélectionner
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?


achtungbaby
WRInaute accro
WRInaute accro
 
Messages: 4066
Inscription: 14 Juin 2004

Message le Mer Oct 05, 2005 11:48

Pourquoi tu colles un seul .htaccess à la racine de ton site ?

Il serait préférable de coller un .htaccess par sous dossier.


saico
Nouveau WRInaute
Nouveau WRInaute
 
Messages: 27
Inscription: 5 Oct 2005

Message le Mer Oct 05, 2005 11:50

je ne savais pas que c'etait possible en fait lol
je vais essayer ca merci a toi :)


saico
Nouveau WRInaute
Nouveau WRInaute
 
Messages: 27
Inscription: 5 Oct 2005

Message le Mer Oct 05, 2005 11:54

ca marche impeccable, merci à toi pour l'info, j'etais persuadé que le fichier devait etre obligatoirement a la racine ^^

nicolashague
WRInaute discret
WRInaute discret
 
Messages: 152
Inscription: 3 Mai 2005

Message le Mer Oct 05, 2005 13:38

par contre je crois que le .htaccess se propage dans les dossiers fils non ?


cybervince
WRInaute impliqué
WRInaute impliqué
 
Messages: 880
Inscription: 1 Aoû 2004

Message le Mer Oct 05, 2005 13:43

nicolashague a écrit:par contre je crois que le .htaccess se propage dans les dossiers fils non ?

Oui.


Si vous avez aimé cette discussion, partagez-la sur vos réseaux sociaux préférés :

Formation recommandée sur ce thème :

Formation URL Rewriting et sites dynamiques : apprenez comment mettre en place la réécriture d'URL, comment optimiser vos URL et profiter de vos pages dynamiques pour booster votre référencement. Formation animée par Olivier Duffez et Fabien Facériès, experts en référencement naturel.

Tous les détails sur le site Ranking Metrics : programme, prix, dates et lieux, inscription en ligne.

Lectures recommandées sur ce thème :



Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités