Can't access the site through www (wold wide web)

Discussion in 'Apache' started by Sharmeiri, Jul 19, 2021.

  1. #1
    Hello
    I have a website: https://sctch.co.il
    when I try to enter the site through www.sctch.co.il I get a blank page displaying "hello world" in simple small text.
    When I enter the site through https://sctch.co.il or http it is working fine.
    I have tried to search the folder of sctch.co.il inside the htdocd folder. I searched all of the files and folders for "hello world" and couldn't find it.
    I also have another site in the htdocs its URL IS https://scts.co.il. this site is working fine with www. scts.co.il
    I already tried dns record
     
    Sharmeiri, Jul 19, 2021 IP
  2. Sharmeiri

    Sharmeiri Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    Yes it is
    thanks for the quick response.
     
    Sharmeiri, Jul 19, 2021 IP
  3. Sharmeiri

    Sharmeiri Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    What code should I write?
     
    Sharmeiri, Jul 19, 2021 IP
  4. Sharmeiri

    Sharmeiri Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    It didn't seem to work
     
    Sharmeiri, Jul 19, 2021 IP
  5. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    818
    Best Answers:
    7
    Trophy Points:
    320
    #5
    You most likely have an .htaccess issue. Go there and see whether www is enabled. If not, enable it.

    If that does not work, then you must contact your isp because their settings for your account are not correct.
     
    mmerlinn, Jul 19, 2021 IP
  6. Sharmeiri

    Sharmeiri Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #6
    I noticed something else.
    When I bring down the apache server the "hello world" still happen.
    I don't understand why
     
    Sharmeiri, Jul 19, 2021 IP
  7. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,263
    Likes Received:
    1,693
    Best Answers:
    31
    Trophy Points:
    475
  8. Sharmeiri

    Sharmeiri Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #8
    thanks for your reply
    I tried that already

    it didn't work
     
    Sharmeiri, Jul 20, 2021 IP
  9. Jeoru

    Jeoru Well-Known Member

    Messages:
    1,115
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    160
    #9
    maybe it's a virtualhost issue. check your virtual host setup.
     
    Jeoru, Jul 20, 2021 IP