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

Can I use svn (version control)?

svn is only supported by our dedicated servers. svn is NOT available on our shared hosting...

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

How often do you back up my site ?

Your entire website content (including all e-mails, MySQL databases etc) are automatically backed...

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