I have submitted my site to google. The problem is that google links to the homepage when it should be linking to the "index.html". I am using frames so it is a big problem. For the moment I have put a link at the homepage to the whole site but I still have to fix it.
Here is the link to the site: www.jawgames.frih.net
And here is the link to the part of the site which you get when you google it: www.jawgames.frih.net/Home.html
This is a quite big problem for me, do anyone know how to solve it?
change the naming around, name the home page index.html
then name the page you want to show up in a frame something else like homepage.html, see if that works
Hmm, I don`t think that it is a very good idea. Then the www.jawgames.frih.net adress would link to only the "home"page.
But thanks for trying
Do anyone know some kind of HTML which autodirects you to the index.html if you only are using the Home.html frame?
First advice :
Your index page lacks some alternatives : you can use NOFRAMES tags within your FRAMESET, ie:
|<FRAME src="blah"><NOFRAMES><BODY>Welcome on my page.Blah blah blah Here are all the links to my other pages : <a href="games.
Now the answer to your question :
if (frames.length < 0)
Of course you can make it smarter by reloading the orphan page within the frameset silently, at its place, without having to go through the homepage.
Thanks for the tips, I am planning to fix the framething when I have time.
<SCRIPT>if (frames.length < 0) document.top.location.href="http://www.jawgames.frih.net";</SCRIPT>
and it seemes to not work. I might have done something wrong. Probably I have done something wrong
No it's me being wrong, I typed it out of (bad) memory, and supercharged arguments, ie
And as for the first part of the script, it's a bit unreliable depending on the numbers of frames, so I recommand using this instead :
|if (window.parent.frames.length < 1) document.location="http://www.jawgames.frih.net"; |
to put on each "orphan" page
That should take care of your problem (just tested on IE 6)
Ah, now it works fine, thank you very much for the help!