Redirect Domain URL (Apex) to WWW within Apache VirtualHost

If you ever need to redirect a naked domain to www subdomain.

<VirtualHost *:80>
  ServerName example.com
  Redirect 301 / http://www.example.com
</VirtualHost>


comments powered by Disqus