iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-19-2007, 02:26 PM
advancedmerchant's Avatar
WebProWorld Pro
 
Join Date: Aug 2003
Location: Fullerton, CA
Posts: 169
advancedmerchant RepRank 1
Default HELP! Organic listings point to interior frame only!

My site was built with frames, and we are stuck with them. The left hand outer frame contains our navigation menu, the upper frame, our company name and logo. The interior frame shows the content. G and Y organic listings always point to the interior page, leaving a visitor with no navigation, or name and logo.

The question is: can a script be written (windows server) that can detect if a page being viewed is NOT in a frame, so it can "re-invoke" itself inside our framework?
__________________
Accept Credit Cards Anywhere!
www.merchantanywhere.com
Reply With Quote
  #2 (permalink)  
Old 06-19-2007, 06:19 PM
WebProWorld Member
 
Join Date: Sep 2005
Location: West Sussex, UK
Posts: 39
Fitz RepRank 1
Default Re: HELP! Organic listings point to interior frame only!

I have a piece of code from LONG ago, which I "inherited" from a site which I purchased, the site having originally been made using frames. Frames are not a great idea these days as you probably know, but here is the code nevertheless:

<SCRIPT LANGUAGE="JavaScript">
<!--
if (top == self) self.location.href = "index.html";
// -->
</SCRIPT>

The above script goes in the <head> section of the web page(s) which form part of a frameset and it's purpose is to make any child frame display the full (parent) frameset (containing the child frames) as opposed to displaying only one child frame (which may look daft on its own). Obviously the parent frameset in this instance is called "index.html", so you'll need to change that part as appropriate. Give it a whirl; hope it still works after all this time!

If it does work, you should find that even if Google sends someone to a child frame, it should pop the complete frameset up instead, which would make much more sense visually.
Reply With Quote
  #3 (permalink)  
Old 06-19-2007, 06:19 PM
incrediblehelp's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,573
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: HELP! Organic listings point to interior frame only!

1. Why are you stuck with them?? Bite the bullet and start planning a solution to rid yourself of a framed website.

2. You can also 301 redirect a URL to another URL. Have you considered this?
Reply With Quote
  #4 (permalink)  
Old 06-19-2007, 06:21 PM
WebProWorld Member
 
Join Date: Sep 2005
Location: West Sussex, UK
Posts: 39
Fitz RepRank 1
Default Re: HELP! Organic listings point to interior frame only!

By the way, I totally agree (as always!) with Incrediblehelp, but hope the script shown above suits for the interim.
Reply With Quote
  #5 (permalink)  
Old 06-19-2007, 06:34 PM
WebProWorld Member
 
Join Date: Aug 2006
Posts: 72
EditFast RepRank 0
Default Re: HELP! Organic listings point to interior frame only!

The real problem lies in directing the user to the page as it should be viewed. I think you could use .htaccess to redirect the user to the correct URL. This would work for the menu frame and the other frames you mention because you probably only have a couple of these but if you have a large number of content pages it could get tedious.

You might also want to look here to solve the problem for iFrames:
Force Page into an Iframe

or here for frames:
HotScripts.com :: JavaScript :: Windows and Frames :: Force Page To Open In Frameset Script
__________________
EditFast
Any Document --> Any Time!
Web Site Copy Editing & Proofreading
Reply With Quote
  #6 (permalink)  
Old 06-19-2007, 08:57 PM
T-G T-G is offline
WebProWorld New Member
 
Join Date: Jun 2007
Location: Clare Valley Australia
Posts: 23
T-G RepRank 1
Default Re: HELP! Organic listings point to interior frame only!

Seriously why don't you start again, a bit of javascript is only a bandaid fix.

Set up a new css layout, all your links will be on the one page, google will see them, who knows what's happening now? it must be a mess for the bots to see the full potential of your site.

If you already have OK search results, IMO changing to a css layout is probably the best SEO you could do right now, I'm sure your results would imporve.

There's a heap of css layout template sites out there, if you have a huge site, just start on the pages which rank.
__________________
Kakadu Nat Park in Australia has man eating crocodiles and 20000 year old rock paintings, see it by 4WD kakadu tours
Reply With Quote
  #7 (permalink)  
Old 06-19-2007, 09:25 PM
DrTandem1's Avatar
WebProWorld 1,000+ Club
 
Join Date: Oct 2003
Location: Encinitas, CA
Posts: 1,830
DrTandem1 RepRank 2
Default Re: HELP! Organic listings point to interior frame only!

Double post
__________________
DrTandem's San Diego Web Page Design, drtandem.com

Last edited by DrTandem1; 06-19-2007 at 09:29 PM.
Reply With Quote
  #8 (permalink)  
Old 06-19-2007, 09:25 PM
WebProWorld Member
 
Join Date: Jun 2007
Posts: 50
Matteo RepRank 0
Default Re: HELP! Organic listings point to interior frame only!

Right now you are pedaling a trike in the indy 500. You may think it will cost too much to get off the trike and into a car but you are losing more ground than you know. Yes bite the bullet and redesign the site without frames.
Reply With Quote
  #9 (permalink)  
Old 06-19-2007, 10:52 PM
Orion's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Sep 2003
Location: Halton Hills, ON
Posts: 702
Orion RepRank 4Orion RepRank 4Orion RepRank 4Orion RepRank 4
Default Re: HELP! Organic listings point to interior frame only!

I have had many clients come to me with older frame build sites, which we have unframed, and they've been way better for it in the SERPs and for many other reasons too.

Here's your original site index page...
<frameset framespacing=0 border=0 rows=89,71* frameborder=0>
<frame name=banner scrolling=no noresize target=contents src=mainlogo.htm marginwidth=0 marginheight=0>
<frameset cols=145,102*>
<frame name=_toc target=main src=maintoc.htm scrolling=no marginwidth=0 marginheight=0 noresize>
<frame name=main src=home.htm scrolling=auto noresize marginwidth=0 marginheight=0 target=_self>
</frameset>
Now if you are on a linux server you can use a .htaccess file to allow the server to parse server side includes for .htm (or whatever extensions your site is now)...

Then do this...
<!--#include virtual="/mainlogo.htm" -->
<!--#include virtual="/maintoc.htm" -->
<div id="content">
<p>content from home.htm goes here OR include the home.htm page (only for index rest of pages actually copy paste the content into this area then name the new page what the old frame was called.</p>
</div>
do that for each page .. done your site doesn't rely on frames anymore...

Once you're frameless you're off to the races anytime you want you can redesign very easily.

You can change the names of the files for the header / nav also..
Reply With Quote
  #10 (permalink)  
Old 06-19-2007, 11:37 PM
edhan's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Singapore
Posts: 716
edhan RepRank 3edhan RepRank 3edhan RepRank 3
Thumbs up Re: HELP! Organic listings point to interior frame only!

Quote:
Originally Posted by incrediblehelp View Post
1. Why are you stuck with them?? Bite the bullet and start planning a solution to rid yourself of a framed website.

2. You can also 301 redirect a URL to another URL. Have you considered this?
Agreed with incrediblehelp. Get yourself out of frame for a long term benefits.
Reply With Quote
  #11 (permalink)  
Old 06-21-2007, 03:45 PM
roxane's Avatar
WebProWorld Member
 
Join Date: Dec 2006
Location: South Africa
Posts: 30
roxane RepRank 1
Default Re: HELP! Organic listings point to interior frame only!

If you have a choice, redesign, if not here's another variation...

<script type="text/javascript">
<!--
//if not in frames
if (parent.frames.length==0)
//CHANGE "index.htm" to the URL of your main frame page
window.location.replace("index.htm")
//-->
</script>
__________________
Visit my Web Design company
Reply With Quote
  #12 (permalink)  
Old 06-22-2007, 02:20 AM
Clicken's Avatar
WebProWorld Pro
WebProWorld MVP
 
Join Date: Jul 2004
Posts: 259
Clicken RepRank 5Clicken RepRank 5Clicken RepRank 5Clicken RepRank 5Clicken RepRank 5Clicken RepRank 5
Default Re: HELP! Organic listings point to interior frame only!

I’m not so sure about frames hurting position in the SERPs, if used correctly.

my frames site was in the top positions until it was dropped from the DMOZ.

I was using the java code for redirect as Fitz suggested and it worked fine. When I changed my table design to css I added links to the bottom of the pages and dropped the code to clean things up though.

Here is a link for a page which looks like frames but it is css,… just to give you some inspiration.
CSS Frame Emulation
stu nicholls | CSS PLaY | CSS frame emulation | the holy grill#
__________________
Clicken
Math Flash Cards Online
Reply With Quote
  #13 (permalink)  
Old 06-25-2007, 09:54 PM
WebProWorld Pro
 
Join Date: May 2004
Location: Texas
Posts: 246
corporateface RepRank 0
Thumbs up Re: HELP! Organic listings point to interior frame only!

Adding to Roxanne's script ...


See the following line ...

window.location.replace("index.htm")

I'm not going to search out the code for you, but you can use ASP or PHP or whatever to get the exact address the searcher went to...

Truncate the base URL and append the page to url as a tag like ?url=
Nav the frame to the url= ...

It isn't difficult, and maybe it is just unnecessary drama.

Best solution is to hire a good designer to fix it.

wink.
__________________
www.corporateface.com
Custom Website Design
No Templates
Reply With Quote
  #14 (permalink)  
Old 07-11-2007, 08:10 PM
advancedmerchant's Avatar
WebProWorld Pro
 
Join Date: Aug 2003
Location: Fullerton, CA
Posts: 169
advancedmerchant RepRank 1
Default Re: HELP! Organic listings point to interior frame only!

To all that replied.. THANK YOU!
Fitz- the code worked, now getting it on all the needed pages will be a chore, but one that works! Thank You.

Incrediblehelp - gee, wanna re-do my entire website? it's only one gigibyte of content...

Roxanne, Haven't tried your variant of the code, but if the first one has problems, I have a backup.

Orion, will your solution work on Windows servers? We are .NET and ASP driven internally.

Again, Thank you all!
__________________
Accept Credit Cards Anywhere!
www.merchantanywhere.com
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Differentiate Paid vs Organic Listings? phunklord Search Engine Optimization Forum 4 10-04-2005 05:23 PM
Penalised in Google for Affiliates in organic listings? NakedLogic Search Engine Optimization Forum 0 02-24-2005 07:34 PM
How To Question: Frame or no Frame? Glenn Albert Bradley Google AdWords/Google AdSense 4 01-08-2005 03:06 PM
Organic Listings - Day 1, 1:30 PM (EST) Garrett Insider Reports 7 12-13-2003 10:12 AM
Keyword impressions and Organic Listings huskers Search Engine Optimization Forum 0 12-12-2003 06:44 PM


All times are GMT -4. The time now is 04:05 PM.



Search Engine Optimization by vBSEO 3.3.0