PDA

View Full Version : link to pages within frameset???



adyblain
01-07-2004, 04:05 AM
Have a site called:

http://www.prodeck.org

When it comes up on Google, some links are to pages within the frameset on the homepage. I would much rather have people link straight to the index.html rather than a page that was designed to sit within a frame on that homepage. Is there some code that would make any links to that page-within-the-frameset automatically go to the homepage instead? I would hate to lose all those link from the Google search!

Any help is great.

ablainey@shaw.ca

DarrenPWS
01-07-2004, 04:43 AM
Hi,

I believe that if you place the following tag in your <HEAD> section of the pages that are not to be indexed, you will eventually get rid of this issue:

<META NAME="ROBOTS" CONTENT="FOLLOW/NOINDEX">

This will tell the Google spiders in this case to follow your links, but not index that particular page!

Hope this is correct!

Darren Darkinshttp://www.positive-websolutions.co.uk

Mel
01-07-2004, 08:41 AM
Ir I understand you correctly you want indexed links which refer to the content frame to redirect to say, the surrounding navigation frame?

Take a look at this page, I think this is will do it for you:
http://www.scriptasylum.com/tutorials/frameredirect/frameredirect.html

mm99
01-08-2004, 09:52 PM
The problem you are describing is actually one of the biggest problems with frames.

DarrenPWS stated it right. But you need to have the urls that glue the frames together properly done. You need to have the robots follow the pages you want them to follow, your pages that hold the frames together, and not index the framed pages themselves.

You could view any framed site as "what do I want indexed and what don't I want indexed". you need to use the robots tags to solve the problem. That will always work.

peace...Paul

ronniethedodger
01-09-2004, 04:28 AM
Mel has the correct solution. That is a very good article on how to redirect the user to your index.html page which holds the Frameset.

You DO NOT want to put the robot exclusion tag for NOINDEX. That is the page that is showing up in the Google results for Pete's sake. The NOINDEX will tell the robot not to index it and it will no longer appear in the results.

I will take it a step further on the NOINDEX. Do not ever use it. Use your robots.txt file to accomplish your exclusions with. It is a lot cleaner and you can get rid of all that unnecessary robot meta tag stuff off of your pages too. The robots Meta tag is not required. It was added to the tag list years ago when certain Hosts would not allow access to the Server to upload a robots.txt file.

Go with the javascript redirection in the article that Mel cited. This will redirect your visitors who click on link in the Google results for your frame content to the index.html frameset and load your content page inside of it. I looked at the article and it is very well written and easy to understand.

Another script is also available here too and will give you a demonstration of the redirect in action :
http://javascript.internet.com/page-details/load-in-frames.html

This is a sample of the same type of page you are talking about that would be showing up in the results. When you click on that link, it will load itself inside the frameset. The sample code and comments are in the framed page for you to see and copy for your own use.

An interesting side-effect to this script is that if anybody tries to load your content pages into their own framesets....it will boot it out and load it into your frameset. ;0)

Mel
01-09-2004, 10:04 AM
There should be a law against the use of the robots tag except in very special cases.

In no case should you ever use the index,follow variation as that just instructs the bot to do what he would do if there was no tag there in the first place so its just code bloat.

The noindex parameter will cause your page not to be indexed so only use it if you don't want your page in the search engines at all. The nofollow parameter seems useless to me but then I guess there may be some occassions where you don't want the bots to follow the links you inserted?

ronniethedodger
01-09-2004, 02:14 PM
The nofollow parameter seems useless to me but then I guess there may be some occassions where you don't want the bots to follow the links you inserted?

I can think of one devious use for the NOFOLLOW argument in the ROBOT Meta Tag....reciprocal link pages. ;0)