This is an important script most webmasters should use on their pages. It redirects users and bots from domain.com to www.domain.com. This is ultra-important for search engine optimization. Many search engines penalize for duplicate content (by accident, bots can index domain.com seperatly from www.domain.com causing duplicate content! Anyways, create a new document named '.htaccess', add the below code, and put it in your root directory!
See it in action @ http://gfxvoid.com (notice how it changes to http://www.gfxvoid.com)Code:Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.com RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]