Parfois, nous aimerions demander à Apache de rediriger tous les visiteurs entrants de notre_sample_domain.com à www.our_sample_domain.com
Pour ce faire, nous devons modifier .Fichier htaccess comme suit:
# ReWriteCond% http_host ^
our_sample_domain
.com
\.com $ [nc]
# Réécriture .* our_sample_domain.com / [l, r = 301]