+ Reply to Thread
Results 1 to 6 of 6
Like Tree4Likes
  • 2 Post By pratham.gharat200395
  • 1 Post By techairlines
  • 1 Post By pratham.gharat200395

Thread: How to add www to a domain i own?

  1. #1
    pratham.gharat200395 is offline x10Hosting Member pratham.gharat200395 is an unknown quantity at this point
    Join Date
    Dec 2010
    Posts
    12

    How to add www to a domain i own?

    I have a domain and have already set it as my primary domain name from 'Modify Domain' in x10hosting

    But the address is like
    http://domain.com

    I want it to be like
    http://www.domain.com


    In advance dns zone editor i see it as (domain name hidden)
    domain.com - 14400 - IN - A - [SOME IP ADDRESS]
    www.domain.com - 14400 - IN - CNAME - domain.com


    So basically what i see is www.domain.com redirecting to domain.com

    Should i just swap the TYPE and RECORD for both of these go get the result i want?
    dinomirt96 and karimirt47 like this.

  2. #2
    techairlines's Avatar
    techairlines is offline x10 Flyer techairlines has much to be proud oftechairlines has much to be proud of
    Join Date
    Jul 2009
    Location
    New York City
    Posts
    2,853

    Re: How to add www to a domain i own?

    No, don't swap the records. The domain.com holds the A record and www holds the CNAME.

    I just visited your site and you're running WordPress. Go to WordPress Settings > General and edit the WordPress URL and Site URL to a version with the www. This usually will create a 301 redirect for you but if it doesn't, continue reading.

    Then, add these lines to the end of your .htaccess file (in root of public_html)

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    Replace domain.com with your domain name. This will create a 301 redirect from the non-www to www. Make sure you edit the WP settings first or it will cause a redirect loop.

    (The .htaccess method is the general way to choose www or non-www but settings in any CMS software need to be changed as well.)
    Last edited by techairlines; 01-25-2011 at 11:47 PM.
    albfizika11 likes this.
    Best regards,
    Brian Yang - TechAirlines


    How am I doing? Click the star button at the bottom left to rate this post. Thanks.
    Terms of Service | Account Portal | Wiki

  3. #3
    pratham.gharat200395 is offline x10Hosting Member pratham.gharat200395 is an unknown quantity at this point
    Join Date
    Dec 2010
    Posts
    12

    Re: How to add www to a domain i own?

    Thanks, it worked perfectly.
    albfizika11 likes this.

  4. #4
    9mm.tylenol87 is offline x10Hosting Member 9mm.tylenol87 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    2

    Re: How to add www to a domain i own?

    I know this post is kinda old but I've noticed that if I type the subdomain that x10 gives you, while using a parked domain, that it doesn't change to the new domain that you have set. Is there a way to change this or am I barking up the wrong tree?

    -Also I am using a free hosting account.
    Last edited by 9mm.tylenol87; 08-21-2011 at 04:18 AM.

  5. #5
    svrnl.ghosh54 is offline x10Hosting Member svrnl.ghosh54 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    11

    Re: How to add www to a domain i own?

    how to put wordpress on the root directory? i want my website on cellfrens.x10.mx and not on cellfrens.x10.mx/wordpress

  6. #6
    loggerme191 is offline x10Hosting Member loggerme191 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    5

    Re: How to add www to a domain i own?

    You dont need to force this because it's same . www.web.com=web.com

+ Reply to Thread

Similar Threads

  1. Replies: 4
    Last Post: 11-15-2010, 02:33 PM
  2. Replies: 2
    Last Post: 06-20-2010, 09:32 PM
  3. Replies: 4
    Last Post: 06-06-2010, 03:08 AM
  4. Replies: 2
    Last Post: 04-02-2010, 08:54 PM
  5. Replies: 1
    Last Post: 12-12-2009, 08:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers