In web hosting, this would be a challenge for beginners and even for experts. We might feel this can be achieved through CNAME records. Though we can achieve this with a conditional rule in .htaccess file.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
Where youdomain.com is your actual domain name.
Comments
Post a Comment