2 forums sur meme hébergeur, .htaccess?
6 messages
• Page 1 sur 1
Consultez la formation URL Rewriting et sites dynamiques de WebRankInfo / Ranking Metrics
-

saico - Nouveau WRInaute

- Messages: 27
- Inscription: 5 Oct 2005
2 forums sur meme hébergeur, .htaccess?
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
Et j'ai essayé d'ajouter a la suite les lignes pour mon second forum:
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?
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

- Messages: 4066
- Inscription: 14 Juin 2004
Pourquoi tu colles un seul .htaccess à la racine de ton site ?
Il serait préférable de coller un .htaccess par sous dossier.
Il serait préférable de coller un .htaccess par sous dossier.
- nicolashague
- WRInaute discret

- Messages: 152
- Inscription: 3 Mai 2005
par contre je crois que le .htaccess se propage dans les dossiers fils non ?
-

cybervince - WRInaute impliqué

- Messages: 880
- Inscription: 1 Aoû 2004
nicolashague a écrit:par contre je crois que le .htaccess se propage dans les dossiers fils non ?
Oui.
6 messages
• Page 1 sur 1
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 :
- Analyse de la classe C (adresse IP)
Cet outil vous permet de vérifier si plusieurs sites sont hébergés sur la même classe C (adresse IP du serveur).
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités
