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

If I dont add the www......

Discussion in 'Web Hosting' started by tommyownz, Nov 1, 2009.

  1. tommyownz

    tommyownz Regular Member

    Joined:
    Jan 5, 2009
    Messages:
    232
    Likes Received:
    15
    If I dont add the www. to my URL it doesn't go to my website it goes to an error page.
    Does anyone know how to fix this?
    Thanks
     
  2. Jared255

    Jared255 Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    May 10, 2009
    Messages:
    1,911
    Likes Received:
    1,664
    Location:
    Boston, MA
    Happened to me as well for a bit. I did a redirect like this -

    domain.com -> http://domain.com/index.php - redirect with or without the www

    That was whether or not they enter the www they get redirected to your index without the www in the address bar.

    Jared
     
  3. tommyownz

    tommyownz Regular Member

    Joined:
    Jan 5, 2009
    Messages:
    232
    Likes Received:
    15
    Sadly that didnt work for me, I have a blog so I dont have an index page. :(
    Thanks anyway
     
  4. Italian Hawk

    Italian Hawk Power Member

    Joined:
    Apr 21, 2009
    Messages:
    589
    Likes Received:
    126
    Just have it redirect to the home page then without putting in the /index.php. By the way, if you have a wordpress blog, your /index.php redirects to the home page so you do have it, you just didn't realize it.
     
  5. tommyownz

    tommyownz Regular Member

    Joined:
    Jan 5, 2009
    Messages:
    232
    Likes Received:
    15
    I've got a blogger blog. :) When you say like have it redirect, do i have to mess with the DNS settings?
    Thanks
     
  6. Nitros

    Nitros Power Member

    Joined:
    Jan 30, 2009
    Messages:
    573
    Likes Received:
    295
    upload to your site .htaccess file with this:

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^yoursite.com
    RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]
     
  7. byronthurman

    byronthurman Newbie

    Joined:
    Nov 7, 2008
    Messages:
    11
    Likes Received:
    0
    All of those suggestions are correct, but to fix the actual issue, you should set up www in your DNS entry. You would need to set it as a Cname for the www. to work. This should be set at your registrar if they are hosting your DNS otherwise your host would be in control of your DNS if the nameservers have already been pointed. But judging by the fact it's a blogger blog, it's likely to be changed at the registrar level.
     
  8. nikg

    nikg Newbie

    Joined:
    Feb 23, 2008
    Messages:
    24
    Likes Received:
    2
    Home Page:
    Login to your control panel and edit DNS for that domain. Add a CNAME to www and point it to your domain.

    You need to set it like this in your DNS:

    www - 14400 - CNAME - domainname.com.
     
  9. webpapa

    webpapa Newbie

    Joined:
    Jul 25, 2008
    Messages:
    29
    Likes Received:
    8
    Location:
    INDIA
    Instead of setting a CNAME it is preferable to set a permanent redirect in your DNS settings