Mammouth du PHP |
1885 Messages
07 mars 2005, 19:59
La documentation Apache traite de ce genre de cas à cet endroit:
Many servers want to be accessible by more than one name. This is possible with the ServerAlias directive, placed inside the <VirtualHost> section. For example if you add this to the first <VirtualHost> block above
then requests for all hosts in the domain.tld domain will be served by the
www.domain.tld virtual host. The wildcard characters * and ? can be used to match names. Of course, you can't just make up names and place them in ServerName or ServerAlias. You must first have your DNS server properly configured to map those names to an IP address associated with your server.
Liens connexes: ServerAlias directive
Donc à toi d'essayer de baser ta règle de réécriture sur ce "catch-all".

La programmation est l'expression de la poésie d'un programmeur
Génération PHP