Bonjour,
ça fait 3/4 d'heure que j'essaye différentes choses trouvées sur google pour faire ma redirection avec htaccess mais j'y arrive pas… ![]()
pourtant j'essaye de faire un truc assez simple lol, donc j'aimerai faire une redirection invisible de toute les page .html vers un sous dossier.
Par exemple je veux que https://mondomaine.com/index.html et https://www.mondomaine.com/index.html ouvre https://mondomaine.com/sousdossier/index.html
Mais par contre je veux que https://mondomaine.com/index.php reste tel quel
Par exemple je veux que **https://mondomaine.com/index.html** et ...
Mais par contre je veux que **https://mondomaine.com/index.php** reste tel quel
Bonjour @EmmanuelM1
Pour information **index.html** est prioritaire devant **index.php** qui ne sera donc jamais appelé.
Bah si index.html n'existe pas ??
edit : bon ok même si il existe pas du coup il est pris en prioritaire
mince
Non, si index.html ou htm n'existe pas, c'est le suivant dans la liste qui sera pris : index.php
hé non avec mon rewrite, il prend quand même le index.html
du coup j'ai essayé de rajouter DirectoryIndex index.php index.html
et maintenant ça marche bien
me reste plus qu'a arrivé a trouver comment rediriger invisiblement mes https//sousdomaine.mondomaine.com/img/main/image1.jpg vers https//mondomaine.com/img/main/image1.jpg
https//sousdomaine.mondomaine.com/img/second/image1.png vers https//mondomaine.com/img/second/image1.png
https//sousdomaine.mondomaine.com/css/style.css vers https//mondomaine.com/img/css/style.css
etc…
Bon j'ai fais des liens symbolique ça marche ![]()