FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Google problems

 


Jakob [JaWGames]
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?


Last edited by Jakob [JaWGames] on Sun Sep 24, 2006 8:28 am; edited 1 time in total
kronso.23
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 Very Happy
Jakob [JaWGames]
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 Smile

Do anyone know some kind of HTML which autodirects you to the index.html if you only are using the Home.html frame?
dacode
Hi !

First advice :

Your index page lacks some alternatives : you can use NOFRAMES tags within your FRAMESET, ie:

Code:
<FRAME src="blah"><NOFRAMES><BODY>Welcome on my page.Blah blah blah Here are all the links to my other pages : <a href="games.
html">Game Page</a>...</BODY></NOFRAMES></FRAMESET>


Now the answer to your question :

on your indexed page (Home.html) put a javascript within your <HEAD> tags that checks if the current document is framed. If not, reloads the complete frameset.
ie
Code:

if (frames.length < 0)
document.top.location.href="http://www.jawgames.frih.net";


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.
Jakob [JaWGames]
Thanks for the tips, I am planning to fix the framething when I have time.

About the javascript, I have almost none knowledge about javascript but I wrote this in the headtag:

Code:

<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 Rolling Eyes
dacode
Hi again,

No it's me being wrong, I typed it out of (bad) memory, and supercharged arguments, ie

Code:
document.location="http://www.jawgames.frih.net";


is enough

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 :

Code:
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)
Jakob [JaWGames]
Ah, now it works fine, thank you very much for the help! Smile
dacode
you're welcome !
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> SEO and Search Engines

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.