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
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...

Why do I get "Internal Server Error"?

When you are browsing a .html (or .php) file in your account, you may sometimes see an error page...

How do I create an Addon Domain?

An Addon Domain is similar to a subdomain and created in much the same way. An Addon Domain has...

How do I access my hosting account thru SSH?

If you are an expert Linux user, then you may love to use SSH to manage your hosting account. To...

Do you offer Shared SSL?

Yes, ALL our shared hosting plans include FREE Shared SSL.Shared SSL can be used to securely run...