Apache

From All4Dev

Redirection 301

# Suppression du www moche
RewriteCond %{HTTP_HOST} ^www\.exemple\.com$ [NC]
RewriteRule ^(/.*)$ http://exemple.com$1 [R=301,L]