Since Apache 2.4 we can do:
<If "%{HTTP_HOST} == 'exemple.com'">
www and ssl redirect etc
</If>
That's awesome. But to be perfect it needs also a or clause like:
<If "%{HTTP_HOST} == 'exemple.com'" or www.exemple.com>
www and ssl redirect etc
</If>
to catch everything and also make a www redirect into it. Is something like that possible in htaccess?
Aucun commentaire:
Enregistrer un commentaire