Link to home
Start Free TrialLog in
Avatar of thenrich
thenrich

asked on

Default page from google

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
ASKER CERTIFIED SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thenrich
thenrich

ASKER

Are there any good examples of using a robots.txt file with ASP?
[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
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.
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