HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
iframe search engine problem
Post new topic   Reply to topic    HTML Help Forum Index -> SEO
View previous topic :: View next topic  
Author Message
fudgie



Joined: 07 Jul 2005
Posts: 3
Location: wales

PostPosted: Thu Jul 07, 2005 2:08 am     iframe search engine problem Reply with quote

Hi all. I realy need some help!!!

Im using iframes for my website pages and since completing the site i have learned that frames are just a nightmare!!! especially when it comes to search engines. My problem is that search engines are picking up my iframe pages so that when you open them they just appear without the shell/layout of my website.

Is there a simple code i can use on the iframe to detect whether its being loaded into a specific iframe/page and if not, to load that webpage which in turn loads the iframe back into it? Does that make sense?

Please help me?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8267
Location: Castle Rock CO USA

PostPosted: Thu Jul 07, 2005 3:52 am     Reply with quote



Check out iframe search engine problem
fudgie



Joined: 07 Jul 2005
Posts: 3
Location: wales

PostPosted: Thu Jul 07, 2005 4:35 am     iframe problem Reply with quote

cheers for that. i will try it now
xrxnx



Joined: 06 Jul 2005
Posts: 4

PostPosted: Fri Jul 08, 2005 12:47 am     Reply with quote

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (window == top) top.location.href = "home.html";
// End -->
</script>


I asked the same ? a while ago and was linked to this script ^^^ Works perfectly. just replace "home" with the page that loads the frames correctly
spazman



Joined: 11 Oct 2006
Posts: 1

PostPosted: Wed Oct 11, 2006 10:11 pm     Bust the frames and iframes issue wide open!!! Reply with quote

Try this instead this will detect the condition of the page being loaded into the top window and if so will redirect the browser to the correct page

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (!(window == top)) top.location.href = "/iframepage/index.html";
// End -->
</script>

Just place the correct url in the sample above. I use this to bust out of frames that try to capture my pages in frames and iframes. I just hate ad scummers and try to break them whenever I can.

enjoy...
mrLenin



Joined: 23 Nov 2006
Posts: 26

PostPosted: Tue Nov 28, 2006 4:22 am     Reply with quote

JavaScript above does not work on my side Sad
goochs



Joined: 07 Apr 2007
Posts: 1

PostPosted: Sat Apr 07, 2007 7:43 am     Reply with quote

I was told all you have to do is place a link to the page going into the iframe.. <iframe xxxxxxxxx> a link to page here</iframe>
zrocweb



Joined: 19 Nov 2007
Posts: 1

PostPosted: Mon Nov 19, 2007 2:33 pm     If you want the 100% Fool Proof method.... Here ya go.. Reply with quote

All of the above lines spoken about only work if you actually use a <Frameset></frames> properties in previous (source) pages of your site..

If you ust use <iframe src="filename.htm"></iframe> in your source file, then just insert this code into your <HEAD> tag of the "iframe" file...


Code:
script language="javascript">
if
(top.location.href!="http://www.domain.com/index.htm")
{
top.location.href= "http://www.domain.com/index.htm";
}
</script


I guarantee this will work.. if it does not, let me know... I've just completed a site for a client that wanted faster page loads, etc. So using inline-frames was the quickest answer that apeasezed them. So I know it worked.. I've used this method before as well..

The good news is that if a search-engie pulls the iframe html/text and uses that pages name as the link, the viewer clicking that link will immeadiatly be taken to the default page you specify in the last "http:...." line.....

As easy a pie!!

--Mike from 'zrocweb site-builders'
nordberg60



Joined: 21 Jan 2008
Posts: 1

PostPosted: Wed Jan 23, 2008 9:49 am     Iframe Code Reply with quote

zrocweb's iframe code works well, however it does not load the individual iframe into the iframe.

Does anyone know how to acomplish this, i have tried to no avail. Thanks in advance.

Great job by everyone here by the way.
modstore



Joined: 27 May 2008
Posts: 1

PostPosted: Tue May 27, 2008 7:02 am     Reply with quote

It works for me...sort of..here is my problem.

When I search for my page on google it keeps showing www.yourstoreonwheels.com/home.html is there a way to forward from home.html to index.html but only once? This script just keeps forwarding the page over and over again.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> SEO All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial