Going to my domain does not land on index.html

Discussion in 'Off Topic' started by tstiboi, Oct 4, 2018.

  1. tstiboi

    tstiboi New Member

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I've got a domain (Hemkodat.se) that doesn't land on index.html but instead another one (pages/hem.html). If I remove hem.html I get 404 error because it's the first page it tries to land on when you go to Hemkodat.se. I have no clue why this is and how to change it.
     
  2. Livewire

    Livewire Abuse Compliance Officer Staff Member

    Messages:
    18,162
    Likes Received:
    215
    Trophy Points:
    63
    Your index.html contains the following line:

    Code:
    <meta http-equiv="refresh" content="0; url=Pages/Hem.html" />
    That line tells the browser to refresh and load a new URL as soon as the index.html loads. Remove it and the redirect should stop, although you may have to clear your cache first.
     
  3. tstiboi

    tstiboi New Member

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    That's the wrong index file as of me screwing around to test things. Correct index file is uploaded now. There is a script that loads before the refresh with alert('hi'); but I don't get the popup when I go to hemkodat.se, however when I go to hemkodat.se/index.html I get the popup and then an empty page because I removed the redirect line.
     
  4. Livewire

    Livewire Abuse Compliance Officer Staff Member

    Messages:
    18,162
    Likes Received:
    215
    Trophy Points:
    63
    When testing this via http://www.redirect-checker.org/index.php, it still reports a Meta-Refresh redirect is occurring. I'm also still seeing the meta refresh line in the index.html currently in your public_html; there's more code above it now, but the meta tag is still there as of this moment.
     
  5. tstiboi

    tstiboi New Member

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Yup added it again because the website might get visitors anytime soon. I added an alert() in the beggining of the javascript with a greeting in swedish now. Also I just found out that when im on any other browser than google chrome it does land on index.html first and gives me the alert() but when I go on chrome it doesn't give me the alert and seemingly just skips to Hem.html. Do you mind giving it a try in google chrome and tell me if you get the alert()?
     
  6. tstiboi

    tstiboi New Member

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    And now I moved all pages to the root directory because I wanted to shorten the urls, which works fine on all browsers except for chrome as I get an404 because it still tries to go to Pages/Hem.html. Yes I remembered to change the meta refresh url to Hem.html instead of Pages/Hem.html.
     
  7. tstiboi

    tstiboi New Member

    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    The problem has now solved itself without me doing anything.
     

Share This Page