Bonjour,

Je m'arrache les cheveux sur une demande nécessitant à priori une réécriture d'URL, voici le comportement souhaité:

http://www.HOST/sub_index.php?user=demo --> http://demo.HOST (ou http://HOST/index.php)
http://www.HOST/sub_contact.php?user=demo --> http://demo.HOST/contact.php
http://www.HOST/sub_page.php?user=demo&id=5 --> http://demo.HOST/page.php?id=5

Ce triturage est il réalisable ?
Merci d'avance pour vos avis.