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

Naked domain is domain without any prefix, for example google.com is naked domain and www.google.com 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} ^1freehosting.com
RewriteRule (.*) http://www.1freehosting.com/$1 [R=301,L]

Note: For 1freeHosting.com 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 "www.youdomain.com" 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