Bonjour,
Je suis confronté à un problème que je ne parviens pas à résoudre malgré mes recherches.
J'ai un site : www.ourthe-ambleve.be
Et j'ai deux noms de domaines supplémentaires : www.fetedufromage.be et www.greoa.be
J'ai donc deux sites supplémentaires respectivement placés dans les dossiers "fdf" et "greoa". Et j'ai aussi créé deux sous-domaines intitulés : "fdf.ourthe-ambleve.be" et "greoa.ourthe-ambleve.be".
www.fetedufromage.be est actif depuis 2 ans. J'utilise un fichier .htaccess que voici :
Tout fonctionne parfaitement, si j'entre www.fetedufromage.be, j'atterris sur fdf.ourthe-ambleve.be.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 RewriteEngine on RewriteCond %{HTTP_HOST} ^fetedufromage\.be$ [NC] RewriteRule ^(.*)$ http://fdf.ourthe-ambleve.be/ [QSA,R=301,L] RewriteCond %{HTTP_HOST} ^www\.fetedufromage\.be$ [NC] RewriteRule ^(.*)$ http://fdf.ourthe-ambleve.be/ [QSA,R=301,L]
Je voudrais faire la même chose avec www.greoa.be et j'ai donc modifié le .htaccess en conséquence :
Ce qui me retourne invariablement une erreur 500.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 RewriteEngine on RewriteCond %{HTTP_HOST} ^fetedufromage\.be$ [NC] RewriteRule ^(.*)$ http://fdf.ourthe-ambleve.be/ [QSA,R=301,L] RewriteCond %{HTTP_HOST} ^www\.fetedufromage\.be$ [NC] RewriteRule ^(.*)$ http://fdf.ourthe-ambleve.be/ [QSA,R=301,L] RewriteCond %{HTTP_HOST} ^greoa\.be$ [NC] RewriteRule ^(.*)$ http://greoa.ourthe-ambleve.be/ [QSA,R=301,L] RewriteCond %{HTTP_HOST} ^www\.greoa\.be$ [NC] RewriteRule ^(.*)$ http://greoa.ourthe-ambleve.be/ [QSA,R=301,L]
Je ne comprends pas pourquoi et j'espérais que quelqu'un ici pourrait m'aider.
Cordialement,
Alexis
Partager