- DocumentRoot /var/www/<subdirectory>
- ServerName www.example.com
- ServerAlias example.com
- ErrorLog /var/log/<subdirectory>
- TransferLog /var/log/<subdirectory>
- LogLevel warn
- RewriteEngine on
- RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
- RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
- RewriteCond %{HTTP_HOST} ^example.com$
- RewriteRule ^robots.txt robots-development.txt