How to redirect my naked domain to www.domain with 301 redirect?

Naked domain is domain without any prefix, for example is naked domain and is with subdomain www

Easiest way to redirect your you naked domain is to use .htaccess file.

Copy code to to your .htaccess file with values replaced to your neeeds:

RewriteEngine On

### re-direct to www
RewriteCond %{HTTP_HOST} ^
RewriteRule (.*)$1 [R=301,L]

Note: For clients subdomain www is automatically has a DNS record which is pointed as CNAME to your naked domain. For others, please make sure You have "" is working if not create DNS record.

Others try to sell you, what we offer for FREE

Our free hosting features

Price or any hidden costs? Free
Disk space 10GB
Bandwidth 100GB
Addon domains Unlimited
No ads yes
Email accounts 5
FTP accounts 5
MySQL database 5
Free Subdomains 5
Parked domain 5
Website builder, cPanel yes
FTP, PHP5, cURL & more yes

- Still hesitating? -

See all features