Bonjour à tous,
Je cherche à rediriger example.com/page1.htm vers example.fr mais aussi d'autres pages du type example.com/page2.htm vers example.fr/contact
Voici mon .htaccess plus explicite :
Le problème donc c'est que les redirections donnent quelque chose du type : www.example.fr/htfr/form-mes.htm
Donc seul l'extension du domaine change !
Quelqu'un aurait-il rencontré ce cas ?
Merci d'avance,
-sam
Je cherche à rediriger example.com/page1.htm vers example.fr mais aussi d'autres pages du type example.com/page2.htm vers example.fr/contact
Voici mon .htaccess plus explicite :
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule ^(.*) http://www.example.fr/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^example.com/htfr/0003.htm$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com/htfr/0003.htm$
RewriteRule ^(.*) http://www.example.fr/art/plastique/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^example.com/htfr/0004.htm$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com/htfr/0004.htm$
RewriteRule ^(.*) http://www.example.fr/peinture/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^example.com/htfr/MentionsLegales.htm$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com/htfr/MentionsLegales.htm$
RewriteRule ^(.*) http://www.example.fr/mentions-legales/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^example.com/htfr/form-mes.htm$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com/htfr/form-mes.htm$
RewriteRule ^(.*) http://www.example.fr/contactez-nous/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^example.com/htfr/frameset2.htm$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com/htfr/frameset2.htm$
RewriteRule ^(.*) http://www.example.fr/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^example.com/htfr/frameset3.htm$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com/htfr/frameset3.htm$
RewriteRule ^(.*) http://www.example.fr/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^example.com/sites_data/eStaraGen.php?c=00309164&t=33389860387&m=6EF20154DC6C4FA263CF22849545B74C$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com/sites_data/eStaraGen.php?c=00309164&t=33389860387&m=6EF20154DC6C4FA263CF22849545B74C$
RewriteRule ^(.*) http://www.example.fr/musique/$1 [QSA,L,R=301]
Le problème donc c'est que les redirections donnent quelque chose du type : www.example.fr/htfr/form-mes.htm
Donc seul l'extension du domaine change !
Quelqu'un aurait-il rencontré ce cas ?
Merci d'avance,
-sam