How do I setup a rule (on httpd.conf) to redirect all the traffic from www.domain.com to domain.com? Will the following work?
<VirtualHost www.domain.com>
Redirect 301 / http://domain.com/
</VirtualHost>
Where should I put this tag in httpd.conf? Does the order matter?
This is an example of what you can use/do:
The Redirect 301 is good to use but does not have the same flexibility as a rewrite rule.