Redirections d'URL avec .htaccess ?
Résolu
Dicab
Messages postés
186
Statut
Membre
-
math 2000 Messages postés 2833 Statut Membre -
math 2000 Messages postés 2833 Statut Membre -
Bonjour,
Est-il possible, à l'aide d'un .htaccess placé dans un sous-dossier, de rediriger des URL ?
Par exemple,
- rediriger http://www.monsite.com/astuces/astuce1.htm vers http://www.monsite.com/astuces/astuce1.php
- rediriger http://www.monsite.com/astuces/astuce2.htm vers http://www.monsite.com/astuces/astuce2.php
- rediriger http://www.monsite.com/astuces/astuce3.htm vers http://www.monsite.com/astuces/astuce3.php
- etc...
Si oui, quelle doit être la syntaxe ?
Merci beaucoup pour votre aide (je galère) :)
Est-il possible, à l'aide d'un .htaccess placé dans un sous-dossier, de rediriger des URL ?
Par exemple,
- rediriger http://www.monsite.com/astuces/astuce1.htm vers http://www.monsite.com/astuces/astuce1.php
- rediriger http://www.monsite.com/astuces/astuce2.htm vers http://www.monsite.com/astuces/astuce2.php
- rediriger http://www.monsite.com/astuces/astuce3.htm vers http://www.monsite.com/astuces/astuce3.php
- etc...
Si oui, quelle doit être la syntaxe ?
Merci beaucoup pour votre aide (je galère) :)
A voir également:
- Redirections d'URL avec .htaccess ?
- Url - Guide
- Ping url ✓ - Forum Windows
- Comment changer url iptv ✓ - Forum Box et Streaming vidéo
- Url iptv - Forum Box et Streaming vidéo
- Atlas pro url serveur invalide - Forum TV & Vidéo
5 réponses
Merci pour ta réponse...
Ca voudrait dire, par exemple :
RedirectPermanent http://www.monsite.com/astuces/astuce1.htm http://www.monsite.com/astuces/astuce1.php
RedirectPermanent http://www.monsite.com/astuces/astuce2.htm http://www.monsite.com/astuces/astuce2.php
RedirectPermanent http://www.monsite.com/astuces/astuce3.htm http://www.monsite.com/astuces/astuce3.php
Tout ça dans un fichier .htaccess mis dans le dossier "astuces" ?
Si c'est bien ça... ben... ca marche pas :(
Ca voudrait dire, par exemple :
RedirectPermanent http://www.monsite.com/astuces/astuce1.htm http://www.monsite.com/astuces/astuce1.php
RedirectPermanent http://www.monsite.com/astuces/astuce2.htm http://www.monsite.com/astuces/astuce2.php
RedirectPermanent http://www.monsite.com/astuces/astuce3.htm http://www.monsite.com/astuces/astuce3.php
Tout ça dans un fichier .htaccess mis dans le dossier "astuces" ?
Si c'est bien ça... ben... ca marche pas :(
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question