Sunday, January 6, 2008
Creating a Website Page Index Using Google
This post has nothing to do with C# or .NET, but I decided to post it here anyway because it doesn't really "fit" on any of my other blogs either. For this csharp.timl.net blog, I wanted to somehow create an index of all the pages. I use Blogger, and did not want to have to manually create an index page.
One quick and easy solution I came up with is to use the "site search" feature of Google. As you may or may not know, Google allows you to limit your search results to a particular domain by specifying "site:<domain>" after your search criteria (where "<domain>" is the name of the domain from which results are obtained). I happened to stumble across the fact that if you do no specify any search words and only specify the "site:<domain>" in the Google search box, then Google returns a list of all of the pages.
Whala! That is exactly what I want. The only thing left is turn the search into a hyper link. Here is the example from timl.chsarp.net.
Index of timl.net
One quick and easy solution I came up with is to use the "site search" feature of Google. As you may or may not know, Google allows you to limit your search results to a particular domain by specifying "site:<domain>" after your search criteria (where "<domain>" is the name of the domain from which results are obtained). I happened to stumble across the fact that if you do no specify any search words and only specify the "site:<domain>" in the Google search box, then Google returns a list of all of the pages.
Whala! That is exactly what I want. The only thing left is turn the search into a hyper link. Here is the example from timl.chsarp.net.
Index of timl.net
Subscribe to Posts [Atom]