all groups > dotnet web services > march 2007 >
dotnet web services :
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
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 [quoted text, click to view] "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" <catharinusvanderwerf@discussions.microsoft.com> > wrote in message news:5B0624FB-8A28-47BC-BF35-AF02E07695A9@microsoft.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 > >
Hi Scotte, Do I need a link to go to the homepage? Is it not possible to go to the homepage automatically when one clicks on a subpage from outside? And stay on the subpage, when entering from within the website? thanks Catharinus van der Werf Leeuwarden [quoted text, click to view] "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" <catharinusvanderwerf@discussions.microsoft.com> > wrote in message news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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" > >> <catharinusvanderwerf@discussions.microsoft.com> > >> wrote in message > >> news:5B0624FB-8A28-47BC-BF35-AF02E07695A9@microsoft.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 > >> > >> > >> > >
Oke Scott, It's clear you can't help me. Thanks Catharinus van der Werf Leeuwarden The Netherlands [quoted text, click to view] "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" > >> <catharinusvanderwerf@discussions.microsoft.com> > >> wrote in message > >> news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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" > >> >> <catharinusvanderwerf@discussions.microsoft.com> > >> >> wrote in message > >> >> news:5B0624FB-8A28-47BC-BF35-AF02E07695A9@microsoft.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 > >> >> > >> >> > >> >> > >> > >> > >> > >
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" <catharinusvanderwerf@discussions.microsoft.com> [quoted text, click to view] wrote in message news:5B0624FB-8A28-47BC-BF35-AF02E07695A9@microsoft.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
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" <catharinusvanderwerf@discussions.microsoft.com> [quoted text, click to view] wrote in message news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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" >> <catharinusvanderwerf@discussions.microsoft.com> >> wrote in message >> news:5B0624FB-8A28-47BC-BF35-AF02E07695A9@microsoft.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 >> >> >>
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 [quoted text, click to view] "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" <catharinusvanderwerf@discussions.microsoft.com> > wrote in message news:871A7E85-5E24-468C-8645-6639EB3F2624@microsoft.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" > >> >> <catharinusvanderwerf@discussions.microsoft.com> > >> >> wrote in message > >> >> news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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" > >> >> >> <catharinusvanderwerf@discussions.microsoft.com> > >> >> >> wrote in message > >> >> >> news:5B0624FB-8A28-47BC-BF35-AF02E07695A9@microsoft.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 > >> >> >> > >> >> >> > >> >> >> > >> >> > >> >> > >> >> > >> > >> > >> > >
[quoted text, click to view] > 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? [quoted text, click to view] > 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"? [quoted text, click to view] > 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? [quoted text, click to view] > > 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" >> <catharinusvanderwerf@discussions.microsoft.com> >> wrote in message >> news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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" >> >> <catharinusvanderwerf@discussions.microsoft.com> >> >> wrote in message >> >> news:5B0624FB-8A28-47BC-BF35-AF02E07695A9@microsoft.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 >> >> >> >> >> >> >> >> >>
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" <catharinusvanderwerf@discussions.microsoft.com> [quoted text, click to view] wrote in message news:871A7E85-5E24-468C-8645-6639EB3F2624@microsoft.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" >> >> <catharinusvanderwerf@discussions.microsoft.com> >> >> wrote in message >> >> news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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" >> >> >> <catharinusvanderwerf@discussions.microsoft.com> >> >> >> wrote in message >> >> >> news:5B0624FB-8A28-47BC-BF35-AF02E07695A9@microsoft.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 >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
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 [quoted text, click to view] "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" <catharinusvanderwerf@discussions.microsoft.com> > > wrote in message news:871A7E85-5E24-468C-8645-6639EB3F2624@microsoft.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" > > >> >> <catharinusvanderwerf@discussions.microsoft.com> > > >> >> wrote in message > > >> >> news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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" > > >> >> >> <catharinusvanderwerf@discussions.microsoft.com> > > >> >> >> wrote in message > > >> >> >> news:5B0624FB-8A28-47BC-BF35-AF02E07695A9@microsoft.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 > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> > > >> >> > > >> >> > > >> > > >> > > >> > > > >
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.location != homePagePath) {document.location = 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" <catharinusvanderwerf@discussions.microsoft.com> [quoted text, click to view] wrote in message news:A3D40EB6-5615-4148-BB34-0BE350820E42@microsoft.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" >> > <catharinusvanderwerf@discussions.microsoft.com> >> > wrote in message >> > news:871A7E85-5E24-468C-8645-6639EB3F2624@microsoft.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" >> > >> >> <catharinusvanderwerf@discussions.microsoft.com> >> > >> >> wrote in message >> > >> >> news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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" >> > >> >> >> <catharinusvanderwerf@discussions.microsoft.com> >> > >> >> >> wrote in message >> > >> >> >> news:5B0624FB-8A28-47BC-BF35-AF02E07695A9@microsoft.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
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="NOINDEX,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 [quoted text, click to view] "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.location != homePagePath) > {document.location = 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" <catharinusvanderwerf@discussions.microsoft.com> > wrote in message news:A3D40EB6-5615-4148-BB34-0BE350820E42@microsoft.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" > >> > <catharinusvanderwerf@discussions.microsoft.com> > >> > wrote in message > >> > news:871A7E85-5E24-468C-8645-6639EB3F2624@microsoft.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" > >> > >> >> <catharinusvanderwerf@discussions.microsoft.com> > >> > >> >> wrote in message > >> > >> >> news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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
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="NOINDEX,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. [quoted text, click to view] "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.location != homePagePath) > {document.location = 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" <catharinusvanderwerf@discussions.microsoft.com> > wrote in message news:A3D40EB6-5615-4148-BB34-0BE350820E42@microsoft.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" > >> > <catharinusvanderwerf@discussions.microsoft.com> > >> > wrote in message > >> > news:871A7E85-5E24-468C-8645-6639EB3F2624@microsoft.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" > >> > >> >> <catharinusvanderwerf@discussions.microsoft.com> > >> > >> >> wrote in message > >> > >> >> news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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. > >> > >> >> >>
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" <catharinusvanderwerf@discussions.microsoft.com> [quoted text, click to view] wrote in message news:81481678-48D1-4BD3-AE46-660099A382B1@microsoft.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="NOINDEX,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.location != homePagePath) >> {document.location = 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" >> <catharinusvanderwerf@discussions.microsoft.com> >> wrote in message >> news:A3D40EB6-5615-4148-BB34-0BE350820E42@microsoft.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" >> >> > <catharinusvanderwerf@discussions.microsoft.com> >> >> > wrote in message >> >> > news:871A7E85-5E24-468C-8645-6639EB3F2624@microsoft.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" >> >> > >> >> <catharinusvanderwerf@discussions.microsoft.com> >> >> > >> >> wrote in message >> >> > >> >> news:466D0DF3-19A6-43FC-8B1E-8D5EBAA1C9E7@microsoft.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.
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.figuresfirst.nl" if(document.location != homePagePath) {document.location = homePagePath) </script></head> [quoted text, click to view] "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" <catharinusvanderwerf@discussions.microsoft.com> > wrote in message news:81481678-48D1-4BD3-AE46-660099A382B1@microsoft.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="NOINDEX,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.location != homePagePath) > >> {document.location = 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" > >> <catharinusvanderwerf@discussions.microsoft.com> > >> wrote in message > >> news:A3D40EB6-5615-4148-BB34-0BE350820E42@microsoft.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" > >> >> > <catharinusvanderwerf@discussions.microsoft.com> > >> >> > wrote in message > >> >> > news:871A7E85-5E24-468C-8645-6639EB3F2624@microsoft.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) > >> >> > >> >>
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.figuresfirst.nl/index.html" if(document.location != homePagePath) {document.location = homePagePath) </script> </head> The "document.location" 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" <catharinusvanderwerf@discussions.microsoft.com> [quoted text, click to view] wrote in message news:843143FF-B826-4F67-8D60-C755FCBC9358@microsoft.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.figuresfirst.nl" > if(document.location != homePagePath) > {document.location = 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" >> <catharinusvanderwerf@discussions.microsoft.com> >> wrote in message >> news:81481678-48D1-4BD3-AE46-660099A382B1@microsoft.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="NOINDEX,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.location != homePagePath) >> >> {document.location = 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" >> >> <catharinusvanderwerf@discussions.microsoft.com> >> >> wrote in message >> >> news:A3D40EB6-5615-4148-BB34-0BE350820E42@microsoft.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" >> >> >> > <catharinusvanderwerf@discussions.microsoft.com> >> >> >> > wrote in message >> >> >> > news:871A7E85-5E24-468C-8645-6639EB3F2624@microsoft.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
No because semi-colons are optional in JavaScript <SCRIPT> blocks. [quoted text, click to view] "Steven" <quickdry@REMOVEPSAMusers.sourceforge.net> wrote in message news:%237DyZqsdHHA.984@TK2MSFTNGP04.phx.gbl... > if that is a verbim post, isn't that script missing the semi-colons? > > Steven > > "catharinus van der werf" <catharinusvanderwerf@discussions.microsoft.com> > wrote in message > news:843143FF-B826-4F67-8D60-C755FCBC9358@microsoft.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.figuresfirst.nl" >> if(document.location != homePagePath) >> {document.location = homePagePath) >> </script></head> > >
if that is a verbim post, isn't that script missing the semi-colons? Steven "catharinus van der werf" <catharinusvanderwerf@discussions.microsoft.com> [quoted text, click to view] wrote in message news:843143FF-B826-4F67-8D60-C755FCBC9358@microsoft.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.figuresfirst.nl" > if(document.location != homePagePath) > {document.location = homePagePath) > </script></head>
Don't see what you're looking for? Try a search.
|
|
|