Going to my domain does not land on index.html

tstiboi

New Member
Messages
5
Reaction score
0
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.
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
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.
 

tstiboi

New Member
Messages
5
Reaction score
0
Points
1
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.

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.
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
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.
 

tstiboi

New Member
Messages
5
Reaction score
0
Points
1
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.

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()?
 

tstiboi

New Member
Messages
5
Reaction score
0
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.
 
Top