ServerName exemple.com RewriteEngine on RewriteRule ^/(.*)$ http://www.exemple.com%{REQUEST_URI} ServerName www.exemple.com DocumentRoot /var/www/html/