HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

iframe search engine problem
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> SEO
View previous topic :: View next topic  
Author Message
fudgie



Joined: 07 Jul 2005
Posts: 3
Location: wales

Posted: Thu Jul 07, 2005 2:08 am     iframe search engine problem  

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



Joined: 15 May 2004
Posts: 8428
Location: Castle Pines North, CO USA

Posted: Thu Jul 07, 2005 3:52 am      

Check out iframe search engine problem
fudgie



Joined: 07 Jul 2005
Posts: 3
Location: wales

Posted: Thu Jul 07, 2005 4:35 am     iframe problem  

cheers for that. i will try it now
xrxnx



Joined: 06 Jul 2005
Posts: 4

Posted: Fri Jul 08, 2005 12:47 am      

<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

Posted: Wed Oct 11, 2006 10:11 pm     Bust the frames and iframes issue wide open!!!  

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

Posted: Tue Nov 28, 2006 4:22 am      

JavaScript above does not work on my side :(
goochs



Joined: 07 Apr 2007
Posts: 1

Posted: Sat Apr 07, 2007 7:43 am      

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

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

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

Posted: Wed Jan 23, 2008 9:49 am     Iframe Code  

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

Posted: Tue May 27, 2008 7:02 am      

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.
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> SEO
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group