How to setup WWW on my domain Please Help ?? ***************

mirmo123

Regular Member
Joined
Jun 13, 2014
Messages
238
Reaction score
22
Hi guys . I have a new website with hostgator and godaddy on it.. when I type www.mysamplesite(dot)com it will redirect to mysamplesite(dot)com only not on with a WWW . how can I fix this? thanks
 
Last edited:
Oh you have to edit the .htaccess file if its wordpress

Or better yet, use a permanent redirect and redirect and redirect your naked domain (without www) to full domain (with www)
Goto cPanel for this. Check out redirect. It'll be in that.
 
Oh you have to edit the .htaccess file if its wordpress

Or better yet, use a permanent redirect and redirect and redirect your naked domain (without www) to full domain (with www)
Goto cPanel for this. Check out redirect. It'll be in that.

whats better thing to do? htaccess or on my cpanel?
 
do I need to go to my godaddy account?
 
I already tried what u said but that's not what I mean. I mean that I dont have www on my domain
 
If it's not Wordpress then put this in your .htaccess file:

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteBase / 
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
 
Where ever you purchased the domain go to your domain manager, then to your domains.

and make a A record for your domain IE: www
 
I'm using wordpress. I think a figured it out. But I need to buy premium DNS on godaddy? wew. that's so expensive.. to be able to add A record.
 
is it really expensive to buy domains on godaddy?
 
I'm using wordpress. I think a figured it out. But I need to buy premium DNS on godaddy? wew. that's so expensive.. to be able to add A record.

No you dont need to have premium DNS to do that. Don't buy anything! You already have domain and web host. Goto cPanel of hostgator. Then look for redirect under domain category.
Make a 301 redirect. You'll see its there.
 
Back
Top