?
Solved

Default page from google

Posted on 2012-03-29
6
Medium Priority
?
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 1000 total points
ID: 37781949
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 1000 total points
ID: 37781982
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
ID: 37782025
Are there any good examples of using a robots.txt file with ASP?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 37782049
[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
ID: 37782093
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 34

Expert Comment

by:Paul MacDonald
ID: 37888335
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

801 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