OVH Community, votre nouvel espace communautaire.

.htaccess sans le "?"


ktp
01/01/2009, 16h09
Fais ceci, ça va marcher :
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^index.php?photo$ http://www.technobuzz.fr/v2/category/photo/ [L,R=301]
RewriteRule ^index.php?(.*)  http://www.technobuzz.fr/v2/$1 [L,R=301]

technobuzz
01/01/2009, 14h15
Bonjour et bonne année à tous !

Je galère depuis 2 jours sur un sujet qui semble simple.
J'ai changé ma plateforme pour passer de Dotclear à Wordpress.

J'ai besoin de rediriger mes URL de
tag

ancien => http://www.technobuzz.fr/index.php?tag/archos
nouveau => http://www.technobuzz.fr/v2/tag/archos/

Mois

ancien => http://www.technobuzz.fr/index.php?2008/12
nouveau => http://www.technobuzz.fr/v2/2008/12/

Article

ancien => http://www.technobuzz.fr/index.php?e...ionist-classic
nouveau => http://www.technobuzz.fr/v2/enceinte...ionist-classic

categorie

ancien => http://www.technobuzz.fr/index.php?photo
nouveau => http://www.technobuzz.fr/v2/category/photo/


au global sauf categorie :


http://www.technobuzz.fr/index.php?

doit devenir

http://www.technobuzz.fr/v2/

Voici le code testé dans le .htaccess sans succés :

Code:
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_URI} !^/index.php$
RewriteRule .* - [L]
RewriteRule ^.*$ %{QUERY_STRING}
RewriteCond %{HTTP_HOST} !^www.technobuzz.fr/index.php?$ [NC]
RewriteRule ^ http://www.technobuzz.fr/v2/ [R=301]
Si quelqu'un peut m'aider...
Merci !