Found a cool website for grading your website (check SEO and how well it’s working) – Website Grader. When I ran the test for one of my domains, it gave me a warning that my website “mydomain.com” might not get routed to the same place as “www.mydomain.com”. It talked about maybe programming a “301 Redirect”.
A quick web search for how to handle 301 Redirects got me instructions for IIS and other web servers, along with some instructions for using “Mod-rewrite”. There were instructions for PHP, ASP, JSP, CGI PERL and Ruby on Rails (http://www.webconfs.com/how-to-redirect-a-webpage.php). But where were the plain old Apache instructions.
Another search took me to Dave Taylor’s page, and although not exactly what I needed, it pointed me to what I needed to do. Since I am running Apache 2.x, had to go to the “vhosts.conf” file and make the necessary changes.
Dave’s recommendation was:
<VirtualHost hisdomain.com>
Redirect 301 / http://www.hisdomain.com/
</VirtualHost>
But that did not work, since I have multiple domains coming in to one IP address. His suggestion (if that was the case) was:
<VirtualHost 70.84.11.36>