Ok the subject says it well enough. I have domain.com and want it so anytime that someone types domain.com it automagically redirects to www.domain.com
, same for pages, such as domain.com/content.php should redirect to www.domain.com/content.php
. I have read a few posts on 301 redirects but can't seem to get it to work. I can do this on the httpd.conf level or in the .htaccess file for the domain, either works. Here is my current Virtual host enty for this domain:
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
DirectoryIndex index.php index.htm index.html index.cgi
CustomLog /usr/local/apache/domlogs/domain.com combined
My current .htaccess file is blank. Any help is appriciated.