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:
Code:
<VirtualHost xx.xx.xx.xx>
ServerAlias domain.com
ServerAdmin admin@domain.com
DocumentRoot /home/domain/public_html
BytesLog domlogs/domain.con-bytes_log
ServerName www.domain.com
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
DirectoryIndex index.php index.htm index.html index.cgi
User domain
Group domain
CustomLog /usr/local/apache/domlogs/domain.com combined
</VirtualHost>
My current .htaccess file is blank. Any help is appriciated.