There are a couple things that need to be considered when creating an htaccess file to redirect all traffic from a domain to www.domain. Follow the instructions below to make sure you have your bases covered and traffic is redirected properly.
- mod rewrite:Make sure the rewrite_module is being loaded. You should see a line like the following in your apache configuration file (typically /etc/httpd/conf/httpd.conf).
- LoadModule rewrite_module modules/mod_rewrite.so