Solved

Default page from google

Posted on 2012-03-29
6
241 Views
Last Modified: 2012-04-24
I'm designing an ASP.net site and notice when I google it all the pages of the site are found. How can I redirect the link to point to the default page no matter what link is clicked from a search engine?

Thank you
0
Comment
Question by:thenrich
  • 3
  • 2
6 Comments
 
LVL 33

Accepted Solution

by:
paulmacd earned 250 total points
Comment Utility
If you really want to hide the other pages from Google, you could set up a robots.txt file to hide everything but the index page.
0
 
LVL 7

Assisted Solution

by:celazkon
celazkon earned 250 total points
Comment Utility
Could be done by more ways, from my opinion the easiest is to use session. Generally, if the session starts, redirect visitor to the default page. If the session is already started, then leave him visiting the requested page.
0
 
LVL 5

Author Comment

by:thenrich
Comment Utility
Are there any good examples of using a robots.txt file with ASP?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 33

Expert Comment

by:paulmacd
Comment Utility
[celazkon] has a good point.  If you're just interested in forcing everyone to see your home page first, you could do that in code.



Robots.txt will work just fine with ASP/ASP.Net.  Allow your home page.  Disallow everything else.

http://www.robotstxt.org/robotstxt.html
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=156449
0
 
LVL 5

Author Comment

by:thenrich
Comment Utility
Actaully I kinda like both ideas. I just created the robots.txt file but I won't see the results of that until next time there is a crawl. If there is some example code to valaidate seesion state and redirect that would be great.
0
 
LVL 33

Expert Comment

by:paulmacd
Comment Utility
Sorry, I didn't see the follow-up post.  

You should be able to see if the Session persists or not using the sample from this page:
http://devnet.asna.com/KB/Pages/397.aspx
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now