1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

My domain doesn't work unless the www is added before it.

Discussion in 'Domain Names & Parking' started by bsbear, Sep 9, 2011.

  1. bsbear

    bsbear BANNED BANNED

    Joined:
    Sep 7, 2011
    Messages:
    100
    Likes Received:
    10
    I'm not really sure why this is, but when you go to my website, without the www, it goes to the registrar's site.

    Otherwise it works fine.

    Check it out, hilariouspicturez

    C0m
     
  2. JenniFranks

    JenniFranks Junior Member

    Joined:
    Jul 26, 2010
    Messages:
    124
    Likes Received:
    44
    Occupation:
    UI Design
    Location:
    Chicago
    You need to set a wildcard DNS record.
     
    • Thanks Thanks x 1
  3. dowser

    dowser Power Member

    Joined:
    Jun 5, 2011
    Messages:
    685
    Likes Received:
    122
    Location:
    canada
    use .httaccess to redirect no www version to www, I'd have to dig to find the code

    OK, found it, just change it as it redirects www to no www and of course substitute the example with your domain name.

    RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
    RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

    On the other hand - I don't know if blogger lets you use .httaccess file...
     
    Last edited: Sep 9, 2011
  4. GreyWolf

    GreyWolf Executive VIP Jr. VIP

    Joined:
    Aug 17, 2009
    Messages:
    1,930
    Likes Received:
    5,389
    Gender:
    Male
    Occupation:
    Artist / Craftsman
    Location:
    sitting at my PC
    That's not going to help in the case the OP is describing. The .htaccess redirection is only helpful if both versions resolve to his host account and then he wants to make sure that no matter what everyone will land on his prefered url.

    The problem the OP is describing is caused by how the DNS is set up at his registrar. He needs to go to his registar and look at the settings. If he can't figure it out on his own then open a support ticket with the registrar.



    That's the correct code for redirecting from the www to non-www version of his site, which is useful in many situations. Unfortunately since the non-www version is currently resolving to his registrars website it isn't going to help him much this time. With the problem the OP is having that code will only result in the visitors using www version also ending up on his registrars site. :cool2:

    Since it's a blogger site, I'm not sure if you even have access to the DNS records though. There should be some setting on there dealing with this issue though.


    edit-
    @OP - Here it is from the Blogger help pages. Apparently this happens when you use a custom url for blogspot in which you're using a domain you already own. It looks like you didn't do the optional A-list part of these instructions when you set up your DNS records at your registrar.
    Just follow those steps for setting up the A-records and you should find the non-www version of you site will work fine.

    Hope that helps. :cool:
     
    • Thanks Thanks x 1
    Last edited: Sep 9, 2011
  5. bsbear

    bsbear BANNED BANNED

    Joined:
    Sep 7, 2011
    Messages:
    100
    Likes Received:
    10
    greywolf, that was exactly what I needed. Thanks man.
     
    • Thanks Thanks x 1
  6. dowser

    dowser Power Member

    Joined:
    Jun 5, 2011
    Messages:
    685
    Likes Received:
    122
    Location:
    canada
    I stand corrected!
     
  7. parkingcash

    parkingcash Newbie

    Joined:
    Mar 25, 2011
    Messages:
    25
    Likes Received:
    1
    you need to set a A record to nonwww yourdomain
     
  8. bsbear

    bsbear BANNED BANNED

    Joined:
    Sep 7, 2011
    Messages:
    100
    Likes Received:
    10
    Yeah, I figured it out, thanks for posting here.

    /closed