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
Does your hosting support FFmpeg?

Yes, ALL the Web Hosting plans at GigaPros fully support FFmpeg. Now you can easily start a...

How to change file permissions in Joomla components?

The ProblemThis is a known issue with Joomla. When you install any Joomla components thru...

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

Where can I see your CPanel Demo?

We do have a CPanel demo for you that will give you a feel of using CPanel. Please remember that...

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