How do I auto-redirect my domain to www?

To redirect your domain from http://mydomain.com to http://www.mydomain.com, add the following code to your .htaccess file:

RewriteCond %{HTTP_HOST} !^www\.mydomain\.com [NC]
RewriteRule ^(.?)$ http://www.mydomain.com/$1 [R=301,L]

Was this answer helpful?

Also Read
Can I switch to a different hosting plan anytime?

Yes, you can switch to any other hosting plans anytime you wish. We do not charge any setup fees...

How can I enable register_globals for my account?

'register_globals' is a PHP Directive. This is no longer being used in the newer version of PHP...

Do you offer any money back guarantee?

Yes, we do.Click here to see our refund / cancellation policy.

Can I switch between PHP-4 and PHP-5?

Yes, you can easily switch between PHP-4 & PHP-5 anytime you wish. To see how, see the...

How do I auto-redirect HTTP to HTTPS (SSL)?

To auto redirect from http to https (SSL) in Apache, add the following code to the top level...