Re: [users@httpd] ServerAlias and RewriteRule

2011-08-17 Thread Richard Taubo
On 17. aug. 2011, at 15.36, Tom Evans wrote: > On Wed, Aug 17, 2011 at 2:27 PM, Richard Taubo wrote: >> Hi! >> >> I originally set my virtual host up like this in my httpd.conf file: >> >> >> >> Question 1) >> Are there any pro

[users@httpd] ServerAlias and RewriteRule

2011-08-17 Thread Richard Taubo
Alias in my httpd.conf file, or are there better ways? My current method, as mentioned above, is: ServerName www.example.com ServerAlias example.com RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com$ [NC] RewriteRule ^(.*)$ http://