Forum Moderators: mack

Message Too Old, No Replies

Search engines and re-directs....

Having TONS of problems...

         

Rezolution

10:50 pm on Oct 16, 2002 (gmt 0)

10+ Year Member



I have been having all sorts of problems with search engines because I run a frames page...

Basically is someone tries to click on a link to a department of my page, they wind up with the page in the whole window! The problem is that when they wind up there, the left and top frames are missing!

I have added code to redirect people to my main url... but that just plops people back at my main page!

Is there a way to redirect them again so that the original page they were trying to get to can be popped up in the correct frame?

For example...

If from a search engine, you clicked the following link...

[example.com...]

It would bring you to that part of my page and it wouldn't be in a frame like it's supposed to... So I added this code to all of my "Department" pages so that if you click on a link like this from a search engine, it redirects you to my MAIN page with the correct frame order...

<SCRIPT LANGUAGE="JavaScript">

<!--

if (top == self) self.location.href = "http://www.example.com/index.htm";

// -->

</SCRIPT>

Now, this is great because people get sent back to the main page, but.......

How do I make it so they get send back to the main page, and then the original link they wanted gets opened up in the Main Frame on my webpage (I want them to be redirected to department whatever, but I wan't the department to open in the correct frame, not the whole page...)?

Is it possible?

I hope I am explaining this correctly...

[edited by: Marcia at 10:57 pm (utc) on Oct. 16, 2002]

shady

10:58 pm on Oct 16, 2002 (gmt 0)

10+ Year Member



Instead of redirecting to a html frameset page, you need to define the frameset dynamically in the javascript:

this.sFrameHTML = '<put the framset in here, dynamically defining the page you are on>';
document.location.href="javascript:this.sFrameHTML";

Rezolution

1:14 am on Oct 17, 2002 (gmt 0)

10+ Year Member



So between Head and Body, I put

this.sFrameHTML = '<put the framset in here, dynamically defining the page you are on>';
document.location.href="javascript:this.sFrameHTML

but where you have <put the framset in here, dynamically defining the page you are on> , what is the frameset defined as? the frame is called "MAIN" but it is in www.tekjerk.com/index.htm

I guess I am asking what to put in the <put frameset here> area...

Rezolution

7:26 am on Oct 17, 2002 (gmt 0)

10+ Year Member



I'm not explaining this correctly...

If you are directed to my site from say Yahoo to say...

[example.com...]

I need that to get bumped into a different directory all together...

I need to have it put into the frame called "Main" on the page...

[example.com...] (into the MAIN frame)

I guess I need to find out how you direct an HTML file to be opened on another page into a target frame on a completly different page...

[edited by: Woz at 7:34 am (utc) on Oct. 17, 2002]
[edit reason] TOS #14 [/edit]

jatar_k

7:31 am on Oct 17, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Why don't you put a text menu across the bottom to let users stay where they are but still have the ability to reach all of the sections?

May be better than bouncing them all over the place.

shady

1:58 pm on Oct 17, 2002 (gmt 0)

10+ Year Member



Rezolution

Did you receive my "sticky mail" I attempted to send you with the complete fix for this problem?