non-www URL doesn't work

Discussion in 'Apache' started by Dody, May 2, 2007.

  1. #1
    Hey,
    I have bought a new vps and I transfered everything and everything is working fine except that any non www URL will not work

    www.arabchurch.com works
    arabchurch.com doesn't work

    what should I do from server side in order to make both URLs work?

    Thanks in advance!
     
    Dody, May 2, 2007 IP
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    You need to redirect the non-www version to www.
     
    Richie_Ni, May 2, 2007 IP
  3. Dody

    Dody Active Member

    Messages:
    138
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    I can't, I have no control over a non-www URL, it's like not apart of the server.
    It shows page can't be found if anyone visit the non-www URL

    does have anything to do with DNS Configuration?
     
    Dody, May 2, 2007 IP
  4. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #4
    You have .htaccess file right?
    Place the following code into the file and let me know if it works.
     
    Richie_Ni, May 2, 2007 IP
  5. Dody

    Dody Active Member

    Messages:
    138
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    I already have that and no it is not working
    it is like the server not hosting the non-www

    I am having a felling it is a DNS Configuration, but don't know what to do, any idea?
    Thanks :)
     
    Dody, May 2, 2007 IP