473,767 Members | 2,198 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML-page clicked in Google don't get me to the website

Hello,

I have build a website with approximately 30 html-pages.
When I search this website in Google, I see the index.html or home.html on
this website, but also other html-pages on this website.
When I click in Google on one of these pages (not index.html or home.html),
I am only linked to that one html-page and not to the website itself.
Does anyone know how to fix this. Is there for example a metatag?

Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands
Mar 15 '07
17 2540
Now that I understand your question, I can give you a suggestion:

Add this to the head section of all your non-home page pages:

<script type="text/javascript">
var homePagePath = "your full home page path here"
if(document.loc ation != homePagePath)
{document.locat ion = homePagePath)
</script>

But, I have to say that this is NOT normal web site behavior and I do not
recommend you actually to it. It is what I'd do if I needed to do what you
want, but I just can't think of a case where I'd want to do this. It takes
a lot of power away from the user.
"catharinus van der werf" <ca************ ******@discussi ons.microsoft.c om>
wrote in message news:A3******** *************** ***********@mic rosoft.com...
Thanks Eugen,

That's my question. Thanks for your answer, but I hoped I could solve it
without ASP.
Now I am afraid it can't.
thanks anyway.

Catharinus van der Werf
www.figuresfirst.nl

"Eugen" wrote:
>Hi Catharinus,

If I understand correctly, you want to force your web pages that are
"sub-pages", (meaning you reach them by following the functionality of
your
application) to re-direct to your web application starting page, if the
user
click from outside of the application.

If this is the case ,you can do it programatically . In ASP.NET you have a
Context object and you can deduct the web page you are coming from. I
think
you can do this using some server variables as well. In case your page is
called from a wrong page you can re-direct it to the starting web page.

Best regards,
Eugen

"Scott M." wrote:
Maybe if you phrased your question more clearly...

"Do I need a link to go to the homepage?"

....and...

"Is it not possible to go to the homepage automatically when one clicks
on a
subpage from outside?"

....don't exactly sound like questions that have specific answers. In
fact,
these questions make me think that you don't understand how web pages
are
accessed and/or how search engines list pages. It doesn't matter if
someone
clicks a link to one of your pages from one of your pages or from
Google.
They are going to wind up wherever the hyperlink points them to. As I
pointed out earlier, if you want someone taken to your home page, you
need
to explicitly give them a hyperlink to that page or just point to the
domain, in which case the home page will be served by default.

It sounds to me like Google is doing exactly what it should and you are
getting exactly what you should. But it also sounds like you belived
that
your home page is the entrance to your web site and that entering any
other
way is bad or incorrect, which is incorrect.

But, if you would take your time and explain what you want and what you
have
more clearly, you might get an answer that helps you.

"catharinus van der werf"
<ca************ ******@discussi ons.microsoft.c om>
wrote in message
news:87******** *************** ***********@mic rosoft.com...
Oke Scott,

It's clear you can't help me.
Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands

"Scott M." wrote:

Do I need a link to go to the homepage?

Where? Sub-pages (as you put it) should always have links on them
(otherwise a user would be stuck there), one of which, should be
back to
the
home page. But, you mentioned that Google is listing the home page
when
you
do your search, so what is the problem?

Is it not possible to go to the homepage automatically when one
clicks
on
a subpage from outside?

Well no! If you click a link to "A", why should it take you to "B"?

And stay on the subpage, when entering from within the website?

Huh? You want to leave the sub-page but stay on it as well?
thanks
Catharinus van der Werf
Leeuwarden

"Scott M." wrote:

There are 2 ways to get to your home page.

1. A direct hyperlink to that page (ie.
http://someSite.com/index.html)
2. A link to the domain server itself, with no page in the
request
(ie.
http://someSite.com)

You indicate that you ARE seeing links to the home page as well
as
other
pages in the site, so what, exactly is the problem as this is
just
what
you
want to see?
"catharinus van der werf"
<ca*********** *******@discuss ions.microsoft. com>
wrote in message
news:46******* *************** ************@mi crosoft.com...
Hi Scott,

yes of course. But what I mean is that it should take me to the
first
page
of the website and that is usely the home.html or index.html.
So I
want
to
go
to one of these pages.
Thanks
Catharinus van der Werf

"Scott M." wrote:

What are you talking about?

Clicking on a link (in Google or anywhere) is only supposed to
take
you
to
one page. If that page is one of your web pages, you have
been
taken
to
your web site. Hyperlinks don't open web sites, per se. They
take
you
to
a
page that is part of a web site.

"catharinus van der werf"
<ca*********** *******@discuss ions.microsoft. com>
wrote in message
news:5B******* *************** ************@mi crosoft.com...
Hello,

I have build a website with approximately 30 html-pages.
When I search this website in Google, I see the index.html
or
home.html
on
this website, but also other html-pages on this website.
When I click in Google on one of these pages (not index.html
or
home.html),
I am only linked to that one html-page and not to the
website
itself.
Does anyone know how to fix this. Is there for example a
metatag?

Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands




Mar 21 '07 #11
Hi Scott,

I tried your example, it doesn't work.
But I think there's another possible solution:
Use the following in the head section of the subpages.

<META NAME="Robots" CONTENT="NOINDE X,FOLLOW">
By using this in the head-section you prevent that this page is shown in
google,
even when there are words found in the page that match the google search.

Thanks

Catharinus van der Werf
www.figuresfirst.nl
"Scott M." wrote:
Now that I understand your question, I can give you a suggestion:

Add this to the head section of all your non-home page pages:

<script type="text/javascript">
var homePagePath = "your full home page path here"
if(document.loc ation != homePagePath)
{document.locat ion = homePagePath)
</script>

But, I have to say that this is NOT normal web site behavior and I do not
recommend you actually to it. It is what I'd do if I needed to do what you
want, but I just can't think of a case where I'd want to do this. It takes
a lot of power away from the user.
"catharinus van der werf" <ca************ ******@discussi ons.microsoft.c om>
wrote in message news:A3******** *************** ***********@mic rosoft.com...
Thanks Eugen,

That's my question. Thanks for your answer, but I hoped I could solve it
without ASP.
Now I am afraid it can't.
thanks anyway.

Catharinus van der Werf
www.figuresfirst.nl

"Eugen" wrote:
Hi Catharinus,

If I understand correctly, you want to force your web pages that are
"sub-pages", (meaning you reach them by following the functionality of
your
application) to re-direct to your web application starting page, if the
user
click from outside of the application.

If this is the case ,you can do it programatically . In ASP.NET you have a
Context object and you can deduct the web page you are coming from. I
think
you can do this using some server variables as well. In case your page is
called from a wrong page you can re-direct it to the starting web page.

Best regards,
Eugen

"Scott M." wrote:

Maybe if you phrased your question more clearly...

"Do I need a link to go to the homepage?"

....and...

"Is it not possible to go to the homepage automatically when one clicks
on a
subpage from outside?"

....don't exactly sound like questions that have specific answers. In
fact,
these questions make me think that you don't understand how web pages
are
accessed and/or how search engines list pages. It doesn't matter if
someone
clicks a link to one of your pages from one of your pages or from
Google.
They are going to wind up wherever the hyperlink points them to. As I
pointed out earlier, if you want someone taken to your home page, you
need
to explicitly give them a hyperlink to that page or just point to the
domain, in which case the home page will be served by default.

It sounds to me like Google is doing exactly what it should and you are
getting exactly what you should. But it also sounds like you belived
that
your home page is the entrance to your web site and that entering any
other
way is bad or incorrect, which is incorrect.

But, if you would take your time and explain what you want and what you
have
more clearly, you might get an answer that helps you.

"catharinus van der werf"
<ca************ ******@discussi ons.microsoft.c om>
wrote in message
news:87******** *************** ***********@mic rosoft.com...
Oke Scott,
>
It's clear you can't help me.
Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands
>
"Scott M." wrote:
>
Do I need a link to go to the homepage?
>>
>Where? Sub-pages (as you put it) should always have links on them
>(otherwise a user would be stuck there), one of which, should be
>back to
>the
>home page. But, you mentioned that Google is listing the home page
>when
>you
>do your search, so what is the problem?
>>
Is it not possible to go to the homepage automatically when one
clicks
on
a subpage from outside?
>>
>Well no! If you click a link to "A", why should it take you to "B"?
>>
And stay on the subpage, when entering from within the website?
>>
>Huh? You want to leave the sub-page but stay on it as well?
>>
>
thanks
Catharinus van der Werf
Leeuwarden
>
"Scott M." wrote:
>
>There are 2 ways to get to your home page.
>>
>1. A direct hyperlink to that page (ie.
>http://someSite.com/index.html)
>2. A link to the domain server itself, with no page in the
>request
>(ie.
>http://someSite.com)
>>
>You indicate that you ARE seeing links to the home page as well
>as
>other
>pages in the site, so what, exactly is the problem as this is
>just
>what
>you
>want to see?
>>
>>
>"catharinus van der werf"
><ca*********** *******@discuss ions.microsoft. com>
>wrote in message
>news:46******* *************** ************@mi crosoft.com...
Hi Scott,
>
yes of course. But what I mean is that it should take me to the
first
page
of the website and that is usely the home.html or index.html.
So I
want
to
go
to one of these pages.
Thanks
Catharinus van der Werf
>
"Scott M." wrote:
>
>What are you talking about?
>>
>Clicking on a link (in Google or anywhere) is only supposed to
>take
>you
>to
>one page. If that page is one of your web pages, you have
>been
>taken
>to
>your web site. Hyperlinks don't open web sites, per se. They
>take
>you
>to
>a
>page that is part of a web site.
>>
>"catharinus van der werf"
><ca*********** *******@discuss ions.microsoft. com>
>wrote in message
>news:5B******* *************** ************@mi crosoft.com...
Hello,
>
I have build a website with approximately 30 html-pages.
When I search this website in Google, I see the index.html
or
home.html
on
this website, but also other html-pages on this website.
When I click in Google on one of these pages (not index.html
or
home.html),
I am only linked to that one html-page and not to the
website
itself.
Does anyone know how to fix this. Is there for example a
metatag?
>
Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands
>>
>>
>>
>>
>>
>>
>>
>>
>>



Mar 27 '07 #12
Hi Scott,

I tried your example, it doesn't work.
But I think there's another possible solution:
Use the following in the head section of the subpages.

<META NAME="Robots" CONTENT="NOINDE X,FOLLOW">
By using this in the head-section you prevent that this page is shown in
google,
even when there are words found in the page that match the google search.

"Scott M." wrote:
Now that I understand your question, I can give you a suggestion:

Add this to the head section of all your non-home page pages:

<script type="text/javascript">
var homePagePath = "your full home page path here"
if(document.loc ation != homePagePath)
{document.locat ion = homePagePath)
</script>

But, I have to say that this is NOT normal web site behavior and I do not
recommend you actually to it. It is what I'd do if I needed to do what you
want, but I just can't think of a case where I'd want to do this. It takes
a lot of power away from the user.
"catharinus van der werf" <ca************ ******@discussi ons.microsoft.c om>
wrote in message news:A3******** *************** ***********@mic rosoft.com...
Thanks Eugen,

That's my question. Thanks for your answer, but I hoped I could solve it
without ASP.
Now I am afraid it can't.
thanks anyway.

Catharinus van der Werf
www.figuresfirst.nl

"Eugen" wrote:
Hi Catharinus,

If I understand correctly, you want to force your web pages that are
"sub-pages", (meaning you reach them by following the functionality of
your
application) to re-direct to your web application starting page, if the
user
click from outside of the application.

If this is the case ,you can do it programatically . In ASP.NET you have a
Context object and you can deduct the web page you are coming from. I
think
you can do this using some server variables as well. In case your page is
called from a wrong page you can re-direct it to the starting web page.

Best regards,
Eugen

"Scott M." wrote:

Maybe if you phrased your question more clearly...

"Do I need a link to go to the homepage?"

....and...

"Is it not possible to go to the homepage automatically when one clicks
on a
subpage from outside?"

....don't exactly sound like questions that have specific answers. In
fact,
these questions make me think that you don't understand how web pages
are
accessed and/or how search engines list pages. It doesn't matter if
someone
clicks a link to one of your pages from one of your pages or from
Google.
They are going to wind up wherever the hyperlink points them to. As I
pointed out earlier, if you want someone taken to your home page, you
need
to explicitly give them a hyperlink to that page or just point to the
domain, in which case the home page will be served by default.

It sounds to me like Google is doing exactly what it should and you are
getting exactly what you should. But it also sounds like you belived
that
your home page is the entrance to your web site and that entering any
other
way is bad or incorrect, which is incorrect.

But, if you would take your time and explain what you want and what you
have
more clearly, you might get an answer that helps you.

"catharinus van der werf"
<ca************ ******@discussi ons.microsoft.c om>
wrote in message
news:87******** *************** ***********@mic rosoft.com...
Oke Scott,
>
It's clear you can't help me.
Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands
>
"Scott M." wrote:
>
Do I need a link to go to the homepage?
>>
>Where? Sub-pages (as you put it) should always have links on them
>(otherwise a user would be stuck there), one of which, should be
>back to
>the
>home page. But, you mentioned that Google is listing the home page
>when
>you
>do your search, so what is the problem?
>>
Is it not possible to go to the homepage automatically when one
clicks
on
a subpage from outside?
>>
>Well no! If you click a link to "A", why should it take you to "B"?
>>
And stay on the subpage, when entering from within the website?
>>
>Huh? You want to leave the sub-page but stay on it as well?
>>
>
thanks
Catharinus van der Werf
Leeuwarden
>
"Scott M." wrote:
>
>There are 2 ways to get to your home page.
>>
>1. A direct hyperlink to that page (ie.
>http://someSite.com/index.html)
>2. A link to the domain server itself, with no page in the
>request
>(ie.
>http://someSite.com)
>>
>You indicate that you ARE seeing links to the home page as well
>as
>other
>pages in the site, so what, exactly is the problem as this is
>just
>what
>you
>want to see?
>>
>>
>"catharinus van der werf"
><ca*********** *******@discuss ions.microsoft. com>
>wrote in message
>news:46******* *************** ************@mi crosoft.com...
Hi Scott,
>
yes of course. But what I mean is that it should take me to the
first
page
of the website and that is usely the home.html or index.html.
So I
want
to
go
to one of these pages.
Thanks
Catharinus van der Werf
>
"Scott M." wrote:
>
>What are you talking about?
>>
>Clicking on a link (in Google or anywhere) is only supposed to
>take
>you
>to
>one page. If that page is one of your web pages, you have
>been
>taken
>to
>your web site. Hyperlinks don't open web sites, per se. They
>take
>you
>to
>a
>page that is part of a web site.
>>
>"catharinus van der werf"
><ca*********** *******@discuss ions.microsoft. com>
>wrote in message
>news:5B******* *************** ************@mi crosoft.com...
Hello,
>
I have build a website with approximately 30 html-pages.
When I search this website in Google, I see the index.html
or
home.html
on
this website, but also other html-pages on this website.
When I click in Google on one of these pages (not index.html
or
home.html),
I am only linked to that one html-page and not to the
website
itself.
Does anyone know how to fix this. Is there for example a
metatag?
>
Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands
>>
>>
>>
>>
>>
>>
>>
>>
>>



Mar 28 '07 #13
This META tag is not respected by all search engines and, as such, you
shouldn't count on it preventing your non-home page pages from appearing in
search engine results.

The script I provided does work. If you post your version of it, I can tell
you what you may have done wrong.
"catharinus van der werf" <ca************ ******@discussi ons.microsoft.c om>
wrote in message news:81******** *************** ***********@mic rosoft.com...
Hi Scott,

I tried your example, it doesn't work.
But I think there's another possible solution:
Use the following in the head section of the subpages.

<META NAME="Robots" CONTENT="NOINDE X,FOLLOW">
By using this in the head-section you prevent that this page is shown in
google,
even when there are words found in the page that match the google search.

"Scott M." wrote:
>Now that I understand your question, I can give you a suggestion:

Add this to the head section of all your non-home page pages:

<script type="text/javascript">
var homePagePath = "your full home page path here"
if(document.loc ation != homePagePath)
{document.locat ion = homePagePath)
</script>

But, I have to say that this is NOT normal web site behavior and I do not
recommend you actually to it. It is what I'd do if I needed to do what
you
want, but I just can't think of a case where I'd want to do this. It
takes
a lot of power away from the user.
"catharinus van der werf"
<ca*********** *******@discuss ions.microsoft. com>
wrote in message
news:A3******* *************** ************@mi crosoft.com...
Thanks Eugen,

That's my question. Thanks for your answer, but I hoped I could solve
it
without ASP.
Now I am afraid it can't.
thanks anyway.

Catharinus van der Werf
www.figuresfirst.nl

"Eugen" wrote:

Hi Catharinus,

If I understand correctly, you want to force your web pages that are
"sub-pages", (meaning you reach them by following the functionality of
your
application) to re-direct to your web application starting page, if
the
user
click from outside of the application.

If this is the case ,you can do it programatically . In ASP.NET you
have a
Context object and you can deduct the web page you are coming from. I
think
you can do this using some server variables as well. In case your page
is
called from a wrong page you can re-direct it to the starting web
page.

Best regards,
Eugen

"Scott M." wrote:

Maybe if you phrased your question more clearly...

"Do I need a link to go to the homepage?"

....and...

"Is it not possible to go to the homepage automatically when one
clicks
on a
subpage from outside?"

....don't exactly sound like questions that have specific answers.
In
fact,
these questions make me think that you don't understand how web
pages
are
accessed and/or how search engines list pages. It doesn't matter if
someone
clicks a link to one of your pages from one of your pages or from
Google.
They are going to wind up wherever the hyperlink points them to. As
I
pointed out earlier, if you want someone taken to your home page,
you
need
to explicitly give them a hyperlink to that page or just point to
the
domain, in which case the home page will be served by default.

It sounds to me like Google is doing exactly what it should and you
are
getting exactly what you should. But it also sounds like you belived
that
your home page is the entrance to your web site and that entering
any
other
way is bad or incorrect, which is incorrect.

But, if you would take your time and explain what you want and what
you
have
more clearly, you might get an answer that helps you.

"catharinus van der werf"
<ca************ ******@discussi ons.microsoft.c om>
wrote in message
news:87******** *************** ***********@mic rosoft.com...
Oke Scott,

It's clear you can't help me.
Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands

"Scott M." wrote:

Do I need a link to go to the homepage?

Where? Sub-pages (as you put it) should always have links on
them
(otherwise a user would be stuck there), one of which, should be
back to
the
home page. But, you mentioned that Google is listing the home
page
when
you
do your search, so what is the problem?

Is it not possible to go to the homepage automatically when one
clicks
on
a subpage from outside?

Well no! If you click a link to "A", why should it take you to
"B"?

And stay on the subpage, when entering from within the website?

Huh? You want to leave the sub-page but stay on it as well?
thanks
Catharinus van der Werf
Leeuwarden

"Scott M." wrote:

There are 2 ways to get to your home page.

1. A direct hyperlink to that page (ie.
http://someSite.com/index.html)
2. A link to the domain server itself, with no page in the
request
(ie.
http://someSite.com)

You indicate that you ARE seeing links to the home page as
well
as
other
pages in the site, so what, exactly is the problem as this is
just
what
you
want to see?
"catharinus van der werf"
<ca*********** *******@discuss ions.microsoft. com>
wrote in message
news:46******* *************** ************@mi crosoft.com...
Hi Scott,

yes of course. But what I mean is that it should take me to
the
first
page
of the website and that is usely the home.html or
index.html.
So I
want
to
go
to one of these pages.
Thanks
Catharinus van der Werf

"Scott M." wrote:

What are you talking about?

Clicking on a link (in Google or anywhere) is only supposed
to
take
you
to
one page. If that page is one of your web pages, you have
been
taken
to
your web site. Hyperlinks don't open web sites, per se.
They
take
you
to
a
page that is part of a web site.

"catharinus van der werf"
<ca*********** *******@discuss ions.microsoft. com>
wrote in message
news:5B******* *************** ************@mi crosoft.com...
Hello,

I have build a website with approximately 30 html-pages.
When I search this website in Google, I see the
index.html
or
home.html
on
this website, but also other html-pages on this website.
When I click in Google on one of these pages (not
index.html
or
home.html),
I am only linked to that one html-page and not to the
website
itself.
Does anyone know how to fix this. Is there for example a
metatag?

Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands






Mar 30 '07 #14
Thanks Scott,

especially for your patience. Here is the code that I inserted in one of the
subpages.
Although I inserted all kinds of Meta name keywords, needed for Google, I
have not inserted that in the code below. Thanks in advance

<html>
<head>
<script type="text/javascript">
var homePagePath = "http://www.figuresfirs t.nl"
if(document.loc ation != homePagePath)
{document.locat ion = homePagePath)
</script></head>


"Scott M." wrote:
This META tag is not respected by all search engines and, as such, you
shouldn't count on it preventing your non-home page pages from appearing in
search engine results.

The script I provided does work. If you post your version of it, I can tell
you what you may have done wrong.
"catharinus van der werf" <ca************ ******@discussi ons.microsoft.c om>
wrote in message news:81******** *************** ***********@mic rosoft.com...
Hi Scott,

I tried your example, it doesn't work.
But I think there's another possible solution:
Use the following in the head section of the subpages.

<META NAME="Robots" CONTENT="NOINDE X,FOLLOW">
By using this in the head-section you prevent that this page is shown in
google,
even when there are words found in the page that match the google search.

"Scott M." wrote:
Now that I understand your question, I can give you a suggestion:

Add this to the head section of all your non-home page pages:

<script type="text/javascript">
var homePagePath = "your full home page path here"
if(document.loc ation != homePagePath)
{document.locat ion = homePagePath)
</script>

But, I have to say that this is NOT normal web site behavior and I do not
recommend you actually to it. It is what I'd do if I needed to do what
you
want, but I just can't think of a case where I'd want to do this. It
takes
a lot of power away from the user.
"catharinus van der werf"
<ca************ ******@discussi ons.microsoft.c om>
wrote in message
news:A3******** *************** ***********@mic rosoft.com...
Thanks Eugen,

That's my question. Thanks for your answer, but I hoped I could solve
it
without ASP.
Now I am afraid it can't.
thanks anyway.

Catharinus van der Werf
www.figuresfirst.nl

"Eugen" wrote:

Hi Catharinus,

If I understand correctly, you want to force your web pages that are
"sub-pages", (meaning you reach them by following the functionality of
your
application) to re-direct to your web application starting page, if
the
user
click from outside of the application.

If this is the case ,you can do it programatically . In ASP.NET you
have a
Context object and you can deduct the web page you are coming from. I
think
you can do this using some server variables as well. In case your page
is
called from a wrong page you can re-direct it to the starting web
page.

Best regards,
Eugen

"Scott M." wrote:

Maybe if you phrased your question more clearly...

"Do I need a link to go to the homepage?"

....and...

"Is it not possible to go to the homepage automatically when one
clicks
on a
subpage from outside?"

....don't exactly sound like questions that have specific answers.
In
fact,
these questions make me think that you don't understand how web
pages
are
accessed and/or how search engines list pages. It doesn't matter if
someone
clicks a link to one of your pages from one of your pages or from
Google.
They are going to wind up wherever the hyperlink points them to. As
I
pointed out earlier, if you want someone taken to your home page,
you
need
to explicitly give them a hyperlink to that page or just point to
the
domain, in which case the home page will be served by default.

It sounds to me like Google is doing exactly what it should and you
are
getting exactly what you should. But it also sounds like you belived
that
your home page is the entrance to your web site and that entering
any
other
way is bad or incorrect, which is incorrect.

But, if you would take your time and explain what you want and what
you
have
more clearly, you might get an answer that helps you.

"catharinus van der werf"
<ca************ ******@discussi ons.microsoft.c om>
wrote in message
news:87******** *************** ***********@mic rosoft.com...
Oke Scott,
>
It's clear you can't help me.
Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands
>
"Scott M." wrote:
>
Do I need a link to go to the homepage?
>>
>Where? Sub-pages (as you put it) should always have links on
>them
>(otherwise a user would be stuck there), one of which, should be
>back to
>the
>home page. But, you mentioned that Google is listing the home
>page
>when
>you
>do your search, so what is the problem?
>>
Is it not possible to go to the homepage automatically when one
clicks
on
a subpage from outside?
>>
>Well no! If you click a link to "A", why should it take you to
>"B"?
>>
And stay on the subpage, when entering from within the website?
>>
>Huh? You want to leave the sub-page but stay on it as well?
>>
>
thanks
Catharinus van der Werf
Leeuwarden
>
"Scott M." wrote:
>
>There are 2 ways to get to your home page.
>>
>1. A direct hyperlink to that page (ie.
>http://someSite.com/index.html)
>2. A link to the domain server itself, with no page in the
>request
>(ie.
>http://someSite.com)
>>
>You indicate that you ARE seeing links to the home page as
>well
>as
>other
>pages in the site, so what, exactly is the problem as this is
>just
>what
>you
>want to see?
>>
>>
>"catharinus van der werf"
><ca*********** *******@discuss ions.microsoft. com>
>wrote in message
>news:46******* *************** ************@mi crosoft.com...
Hi Scott,
>
yes of course. But what I mean is that it should take me to
the
first
page
of the website and that is usely the home.html or
index.html.
So I
want
to
go
to one of these pages.
Thanks
Catharinus van der Werf
>
"Scott M." wrote:
>
>What are you talking about?
>>
>Clicking on a link (in Google or anywhere) is only supposed
>to
>take
>you
>to
>one page. If that page is one of your web pages, you have
>been
>taken
>to
>your web site. Hyperlinks don't open web sites, per se.
>They
>take
>you
>to
>a
>page that is part of a web site.
>>
>"catharinus van der werf"
><ca*********** *******@discuss ions.microsoft. com>
>wrote in message
>news:5B******* *************** ************@mi crosoft.com...
Hello,
>
I have build a website with approximately 30 html-pages.
When I search this website in Google, I see the
index.html
or
home.html
on
this website, but also other html-pages on this website.
When I click in Google on one of these pages (not
index.html
or
home.html),
I am only linked to that one html-page and not to the
website
itself.
Does anyone know how to fix this. Is there for example a
metatag?
>
Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands
>>
>>
>>
>>
>>
>>
>>
>>
>>



Mar 30 '07 #15
The problem is that in the script, you haven't included the file name in the
home page path, just the domain name.

It should be something like this (substitute your home page file name):

<head>
<script type="text/javascript">
var homePagePath = "http://www.figuresfirs t.nl/index.html"
if(document.loc ation != homePagePath)
{document.locat ion = homePagePath)
</script>
</head>

The "document.locat ion" will return a path that includes the file name of
the current document, so you need to specify the full path of the home page
when you set up the homePagePath variable.

-Scott
"catharinus van der werf" <ca************ ******@discussi ons.microsoft.c om>
wrote in message news:84******** *************** ***********@mic rosoft.com...
Thanks Scott,

especially for your patience. Here is the code that I inserted in one of
the
subpages.
Although I inserted all kinds of Meta name keywords, needed for Google, I
have not inserted that in the code below. Thanks in advance

<html>
<head>
<script type="text/javascript">
var homePagePath = "http://www.figuresfirs t.nl"
if(document.loc ation != homePagePath)
{document.locat ion = homePagePath)
</script></head>


"Scott M." wrote:
>This META tag is not respected by all search engines and, as such, you
shouldn't count on it preventing your non-home page pages from appearing
in
search engine results.

The script I provided does work. If you post your version of it, I can
tell
you what you may have done wrong.
"catharinus van der werf"
<ca*********** *******@discuss ions.microsoft. com>
wrote in message
news:81******* *************** ************@mi crosoft.com...
Hi Scott,

I tried your example, it doesn't work.
But I think there's another possible solution:
Use the following in the head section of the subpages.

<META NAME="Robots" CONTENT="NOINDE X,FOLLOW">
By using this in the head-section you prevent that this page is shown
in
google,
even when there are words found in the page that match the google
search.

"Scott M." wrote:

Now that I understand your question, I can give you a suggestion:

Add this to the head section of all your non-home page pages:

<script type="text/javascript">
var homePagePath = "your full home page path here"
if(document.loc ation != homePagePath)
{document.locat ion = homePagePath)
</script>

But, I have to say that this is NOT normal web site behavior and I do
not
recommend you actually to it. It is what I'd do if I needed to do
what
you
want, but I just can't think of a case where I'd want to do this. It
takes
a lot of power away from the user.
"catharinus van der werf"
<ca*********** *******@discuss ions.microsoft. com>
wrote in message
news:A3******* *************** ************@mi crosoft.com...
Thanks Eugen,

That's my question. Thanks for your answer, but I hoped I could
solve
it
without ASP.
Now I am afraid it can't.
thanks anyway.

Catharinus van der Werf
www.figuresfirst.nl

"Eugen" wrote:

Hi Catharinus,

If I understand correctly, you want to force your web pages that
are
"sub-pages", (meaning you reach them by following the functionality
of
your
application) to re-direct to your web application starting page, if
the
user
click from outside of the application.

If this is the case ,you can do it programatically . In ASP.NET you
have a
Context object and you can deduct the web page you are coming from.
I
think
you can do this using some server variables as well. In case your
page
is
called from a wrong page you can re-direct it to the starting web
page.

Best regards,
Eugen

"Scott M." wrote:

Maybe if you phrased your question more clearly...

"Do I need a link to go to the homepage?"

....and...

"Is it not possible to go to the homepage automatically when one
clicks
on a
subpage from outside?"

....don't exactly sound like questions that have specific
answers.
In
fact,
these questions make me think that you don't understand how web
pages
are
accessed and/or how search engines list pages. It doesn't matter
if
someone
clicks a link to one of your pages from one of your pages or from
Google.
They are going to wind up wherever the hyperlink points them to.
As
I
pointed out earlier, if you want someone taken to your home page,
you
need
to explicitly give them a hyperlink to that page or just point to
the
domain, in which case the home page will be served by default.

It sounds to me like Google is doing exactly what it should and
you
are
getting exactly what you should. But it also sounds like you
belived
that
your home page is the entrance to your web site and that entering
any
other
way is bad or incorrect, which is incorrect.

But, if you would take your time and explain what you want and
what
you
have
more clearly, you might get an answer that helps you.

"catharinus van der werf"
<ca************ ******@discussi ons.microsoft.c om>
wrote in message
news:87******** *************** ***********@mic rosoft.com...
Oke Scott,

It's clear you can't help me.
Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands

"Scott M." wrote:

Do I need a link to go to the homepage?

Where? Sub-pages (as you put it) should always have links on
them
(otherwise a user would be stuck there), one of which, should
be
back to
the
home page. But, you mentioned that Google is listing the home
page
when
you
do your search, so what is the problem?

Is it not possible to go to the homepage automatically when
one
clicks
on
a subpage from outside?

Well no! If you click a link to "A", why should it take you
to
"B"?

And stay on the subpage, when entering from within the
website?

Huh? You want to leave the sub-page but stay on it as well?
thanks
Catharinus van der Werf
Leeuwarden

"Scott M." wrote:

There are 2 ways to get to your home page.

1. A direct hyperlink to that page (ie.
http://someSite.com/index.html)
2. A link to the domain server itself, with no page in the
request
(ie.
http://someSite.com)

You indicate that you ARE seeing links to the home page as
well
as
other
pages in the site, so what, exactly is the problem as this
is
just
what
you
want to see?
"catharinus van der werf"
<ca*********** *******@discuss ions.microsoft. com>
wrote in message
news:46******* *************** ************@mi crosoft.com...
Hi Scott,

yes of course. But what I mean is that it should take me
to
the
first
page
of the website and that is usely the home.html or
index.html.
So I
want
to
go
to one of these pages.
Thanks
Catharinus van der Werf

"Scott M." wrote:

What are you talking about?

Clicking on a link (in Google or anywhere) is only
supposed
to
take
you
to
one page. If that page is one of your web pages, you
have
been
taken
to
your web site. Hyperlinks don't open web sites, per se.
They
take
you
to
a
page that is part of a web site.

"catharinus van der werf"
<ca*********** *******@discuss ions.microsoft. com>
wrote in message
news:5B******* *************** ************@mi crosoft.com...
Hello,

I have build a website with approximately 30
html-pages.
When I search this website in Google, I see the
index.html
or
home.html
on
this website, but also other html-pages on this
website.
When I click in Google on one of these pages (not
index.html
or
home.html),
I am only linked to that one html-page and not to the
website
itself.
Does anyone know how to fix this. Is there for example
a
metatag?

Thanks
Catharinus van der Werf
Leeuwarden
The Netherlands







Mar 30 '07 #16
if that is a verbim post, isn't that script missing the semi-colons?

Steven

"catharinus van der werf" <ca************ ******@discussi ons.microsoft.c om>
wrote in message news:84******** *************** ***********@mic rosoft.com...
Thanks Scott,

especially for your patience. Here is the code that I inserted in one of
the
subpages.
Although I inserted all kinds of Meta name keywords, needed for Google, I
have not inserted that in the code below. Thanks in advance

<html>
<head>
<script type="text/javascript">
var homePagePath = "http://www.figuresfirs t.nl"
if(document.loc ation != homePagePath)
{document.locat ion = homePagePath)
</script></head>

Apr 4 '07 #17
No because semi-colons are optional in JavaScript <SCRIPTblocks .
"Steven" <qu******@REMOV EPSAMusers.sour ceforge.netwrot e in message
news:%2******** *******@TK2MSFT NGP04.phx.gbl.. .
if that is a verbim post, isn't that script missing the semi-colons?

Steven

"catharinus van der werf" <ca************ ******@discussi ons.microsoft.c om>
wrote in message
news:84******** *************** ***********@mic rosoft.com...
>Thanks Scott,

especially for your patience. Here is the code that I inserted in one of
the
subpages.
Although I inserted all kinds of Meta name keywords, needed for Google,
I
have not inserted that in the code below. Thanks in advance

<html>
<head>
<script type="text/javascript">
var homePagePath = "http://www.figuresfirs t.nl"
if(document.lo cation != homePagePath)
{document.loca tion = homePagePath)
</script></head>


Apr 4 '07 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
7355
by: Al Moritz | last post by:
Hi all, I was always told that the conversion of Word files to HTML as done by Word itself sucks - you get a lot of unnecessary code that can influence the design on web browsers other than Internet Explorer. Our computer expert in my company had told me already a while ago that I should learn HTML and encode myself. I was never inclined to do so (I am no computer expert), and when upon his suggestion I looked how my pages (converted to...
4
2972
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text email by creating a text file, with content following certain format, and saving that file into the correct '..\mailroot\pickup' folder, and it is working fine
1
2423
by: cirillo_curiosone | last post by:
Hi, i'm new to javascript. I started studing it on the web few weeks ago, but still haven't been able to solve one big problem: HOT TO PASS VALUES FROM A SCRIPT VARIABLE TO A CHILD HTML GENERATED BY FUNCTION. Here'e the point: I'm writing a simple website for showing my photographs. It has a central page with many links (as many as galleries are).
12
3376
by: bissatch | last post by:
Hi, Is it possible for me to store HTML tags inside XML nodes? I need some way to share news headlines. Because the headlines differ in their presentsation, it would be very difficult to store simply the title and link. If possible, how would I do this? Burnsy
9
2005
by: Patient Guy | last post by:
Taking the BODY element as an example, all of its style attributes ('alink', 'vlink', 'background', 'text', etc.) are deprecated in HTML 4.01, a fact noted in the DOM Level 2 HTML specification. The DOM specification does not explicitly itself deprecate the use of attributes however for the element in the interface definition section I read. Is there text in the DOM specification that states specifically that the DOM specification...
4
8953
by: ALESSANDRO Baraldi | last post by:
Good evening. Few day ago i ask about this Object. A very kindly replay of Sthepen Lebans give me the solution to use ClipBoard to synthesise the Conversion, but i've some truble. My scene: I use a RichTextBox to write the Formatted Text, and i need to send the content by Mail with Winsok.
20
2583
by: Alan Silver | last post by:
Hello, I have read about the problems that IE has when using a doctype of HTML 4.01 Transitional. I was advised to use Strict wherever possible. My question is, does the same apply to XHTML 1.0 Transitional? I develop sites using ASP.NET, which emits valid XHTML 1.0 Transitional, but not XHTML 1.0 Strict (for example, it includes a hidden form field with the name of _VIEWSTATE, which isn't valid in Strict, but is in Transitional).
40
5617
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic HTML page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html401/strict.dtd"> <html> <head>
1
1562
by: Ryan Ginstrom | last post by:
I have been maintaining a body of documentation in plain HTML files. I would now like to automate the generation of the HTML files. Maintaining the HTML files now is tedious and error prone, because every time I move/remove/add a section, I have to renumber the following sections and update my internal links. I have looked at some of the HTML-generation frameworks, but the selection is somewhat bewildering, and most also seem geared to...
6
433
by: Guy Macon | last post by:
cwdjrxyz wrote: HTML 5 has solved the above probem. See the following web page: HTML 5, one vocabulary, two serializations http://www.w3.org/QA/2008/01/html5-is-html-and-xml.html
0
9571
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9838
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.