Redirecting visitors to site

S

Sportman7

's there any way to redirect a visitor to my site back to the first page they
entered at the site. That is, if the visitor got to a page on my site with
www.mysite.com/mypage.htm, then they navigate thru different pages, I'd like
to send them back to www.mysite.com/mypage.htm, NOT to my home site of
www.mysite.com with a button on every page that sends them back to whereever
they entered the site instead of to the home page.

I know how to place a button on the page to send them to home, but would
like to only take them back to whereever they entered the site.

Thanks in advance for any and all ideas on this.
 
T

Trevor L.

's there any way to redirect a visitor to my site back to the first
page they entered at the site. That is, if the visitor got to a page
on my site with www.mysite.com/mypage.htm, then they navigate thru
different pages, I'd like to send them back to
www.mysite.com/mypage.htm, NOT to my home site of www.mysite.com with
a button on every page that sends them back to whereever they entered
the site instead of to the home page.

I know how to place a button on the page to send them to home, but
would like to only take them back to whereever they entered the site.

Thanks in advance for any and all ideas on this.

Hmm, I wonder why you want them to go back to the page they entered on. I would have thought that mosr people would prefer visitors
to come in at the top, so if they came in somewhere else, then they should be redirected to the top afterwards

But "There's not to reason why; there's but to do and die"

Off the top of my head, I am thinking "cookies". This is because I can't think of a way to store the information as the visitor
navigates from page to page. I have only used cookies a couple of times so I would have to think about this.

An alternative may be to use database and retrieve the latest information each time a new page is entered. Again, I have not used a
database at all. (I am making this my next project.)

Another approach, somewhat like using the proverbial hammer, would be to pass the page name to each page. This would mean setting up
*all* links as
<a href=mypage.htm?calledby=page6.htm>My page</a> (where "page6.htm" is added using Javascript)

Every page would have to retrieve the calling page name, from a cookie, from the database, or from the string "?calledby=", and
place into a button using Javascript.
 
A

Andrew Murray

You'd need some sort of javascript that writes a cookie to the user's
machine, so it keeps a record of, and knows what page they did come in at.
Sounds complicated to me.

Sorry, this is just a suggestion; I can't help you with the actual code to
do it.


"(e-mail address removed)_SPAM_AT_ALL"
 
S

Sportman7

Trevor,

Thanks for the ideas. Guess I was hoping Frontpage had some type of
variable it tracked in the background to know how the visitor first got
there. Sounds like just not that easy.

Re the why, I like to give out specific page links for different industries.
When they go there and click on home they go back to a more general page, it
is no longer specific to them and can get confusing - a bit confusing anyway.

Having a separate web site for every industry could get expensive eventually.

Don't know much about how to write this up, so hope someone gets interested
in the challenge and can give me some how to specifics.

Thanks again




Trevor L. said:
's there any way to redirect a visitor to my site back to the first
page they entered at the site. That is, if the visitor got to a page
on my site with www.mysite.com/mypage.htm, then they navigate thru
different pages, I'd like to send them back to
www.mysite.com/mypage.htm, NOT to my home site of www.mysite.com with
a button on every page that sends them back to whereever they entered
the site instead of to the home page.

I know how to place a button on the page to send them to home, but
would like to only take them back to whereever they entered the site.

Thanks in advance for any and all ideas on this.

Hmm, I wonder why you want them to go back to the page they entered on. I would have thought that mosr people would prefer visitors
to come in at the top, so if they came in somewhere else, then they should be redirected to the top afterwards

But "There's not to reason why; there's but to do and die"

Off the top of my head, I am thinking "cookies". This is because I can't think of a way to store the information as the visitor
navigates from page to page. I have only used cookies a couple of times so I would have to think about this.

An alternative may be to use database and retrieve the latest information each time a new page is entered. Again, I have not used a
database at all. (I am making this my next project.)

Another approach, somewhat like using the proverbial hammer, would be to pass the page name to each page. This would mean setting up
*all* links as
<a href=mypage.htm?calledby=page6.htm>My page</a> (where "page6.htm" is added using Javascript)

Every page would have to retrieve the calling page name, from a cookie, from the database, or from the string "?calledby=", and
place into a button using Javascript.

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
 
T

Thomas A. Rowe

This can be done if you have knowledge or the will to learn the server-side scripting that is
supported by your web host.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


[email protected]_SPAM_AT_ALL said:
Trevor,

Thanks for the ideas. Guess I was hoping Frontpage had some type of
variable it tracked in the background to know how the visitor first got
there. Sounds like just not that easy.

Re the why, I like to give out specific page links for different industries.
When they go there and click on home they go back to a more general page, it
is no longer specific to them and can get confusing - a bit confusing anyway.

Having a separate web site for every industry could get expensive eventually.

Don't know much about how to write this up, so hope someone gets interested
in the challenge and can give me some how to specifics.

Thanks again




Trevor L. said:
's there any way to redirect a visitor to my site back to the first
page they entered at the site. That is, if the visitor got to a page
on my site with www.mysite.com/mypage.htm, then they navigate thru
different pages, I'd like to send them back to
www.mysite.com/mypage.htm, NOT to my home site of www.mysite.com with
a button on every page that sends them back to whereever they entered
the site instead of to the home page.

I know how to place a button on the page to send them to home, but
would like to only take them back to whereever they entered the site.

Thanks in advance for any and all ideas on this.

Hmm, I wonder why you want them to go back to the page they entered on. I would have thought that
mosr people would prefer visitors
to come in at the top, so if they came in somewhere else, then they should be redirected to the
top afterwards

But "There's not to reason why; there's but to do and die"

Off the top of my head, I am thinking "cookies". This is because I can't think of a way to store
the information as the visitor
navigates from page to page. I have only used cookies a couple of times so I would have to think
about this.

An alternative may be to use database and retrieve the latest information each time a new page is
entered. Again, I have not used a
database at all. (I am making this my next project.)

Another approach, somewhat like using the proverbial hammer, would be to pass the page name to
each page. This would mean setting up
*all* links as
<a href=mypage.htm?calledby=page6.htm>My page</a> (where "page6.htm" is added using Javascript)

Every page would have to retrieve the calling page name, from a cookie, from the database, or
from the string "?calledby=", and
place into a button using Javascript.

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
 
S

Sportman7

Thomas,

Thanks. Guess I'll contact them and see if they can help.



Thomas A. Rowe said:
This can be done if you have knowledge or the will to learn the server-side scripting that is
supported by your web host.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


[email protected]_SPAM_AT_ALL said:
Trevor,

Thanks for the ideas. Guess I was hoping Frontpage had some type of
variable it tracked in the background to know how the visitor first got
there. Sounds like just not that easy.

Re the why, I like to give out specific page links for different industries.
When they go there and click on home they go back to a more general page, it
is no longer specific to them and can get confusing - a bit confusing anyway.

Having a separate web site for every industry could get expensive eventually.

Don't know much about how to write this up, so hope someone gets interested
in the challenge and can give me some how to specifics.

Thanks again




Trevor L. said:
(e-mail address removed)_SPAM_AT_ALL wrote:
's there any way to redirect a visitor to my site back to the first
page they entered at the site. That is, if the visitor got to a page
on my site with www.mysite.com/mypage.htm, then they navigate thru
different pages, I'd like to send them back to
www.mysite.com/mypage.htm, NOT to my home site of www.mysite.com with
a button on every page that sends them back to whereever they entered
the site instead of to the home page.

I know how to place a button on the page to send them to home, but
would like to only take them back to whereever they entered the site.

Thanks in advance for any and all ideas on this.

Hmm, I wonder why you want them to go back to the page they entered on. I would have thought that
mosr people would prefer visitors
to come in at the top, so if they came in somewhere else, then they should be redirected to the
top afterwards

But "There's not to reason why; there's but to do and die"

Off the top of my head, I am thinking "cookies". This is because I can't think of a way to store
the information as the visitor
navigates from page to page. I have only used cookies a couple of times so I would have to think
about this.

An alternative may be to use database and retrieve the latest information each time a new page is
entered. Again, I have not used a
database at all. (I am making this my next project.)

Another approach, somewhat like using the proverbial hammer, would be to pass the page name to
each page. This would mean setting up
*all* links as
<a href=mypage.htm?calledby=page6.htm>My page</a> (where "page6.htm" is added using Javascript)

Every page would have to retrieve the calling page name, from a cookie, from the database, or
from the string "?calledby=", and
place into a button using Javascript.

--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top