I'm not at all that familar with Linux/Apache webservers, but one of our sites is hosted on one, and what we need is .ourdomain.com to 301 redirect to www.ourdomain.com. Our SEO experts said we should do this 301 redirect, as opposed to a DNS redirect.
Our SEO guys gave us some standard code for .htaccess that looks something like this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*)
http://www.example.com/$1
This redirects but then on the destination (www) pages we get an Aapche server error. (500 Internal Server Error Connection ... Please contact the server administrator)
Ok, so that's it. Our SEO guys asked if our web host providers would help, but our web host is horrible. They totally refuse to help. Some IT guy who's never written a line of code in his life says it must be something it my code, but there IS NO code on the server besides SHTML pages and this redirect, which apparently he knows nothing about. I have no idea why we are paying extra money for SpeakEasy web host, when even GoDaddy would be better at $5/mo. They do absolutely nothing, act like they don't even want to host, and treat their customers like inconveniences.
I guess we should hire an Apache/Linux expert to help, but this seems so trivial. Three lines of code that should work. I even tried a simple redirect of one page to another page and get the same error.