Redirections d'URL avec .htaccess ?
Résolu
Dicab
Messages postés
173
Date d'inscription
Statut
Membre
Dernière intervention
-
math 2000 Messages postés 2605 Date d'inscription Statut Membre Dernière intervention -
math 2000 Messages postés 2605 Date d'inscription Statut Membre Dernière intervention -
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
- Comment changer url iptv - Forum Créer un site
- Atlas pro url serveur invalide - Forum TV & Vidéo
- Comment trouver l'url de IPTV ? ✓ - Forum Box et Streaming vidéo
- Url masquée pour votre sécurité - Forum Programmation
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