Solved

Default page from google

Posted on 2012-03-29
6
243 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 34

Accepted Solution

by:
Paul MacDonald earned 250 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 250 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Host asp.net pages 5 34
daypilot scheduler 3 26
List<PaisEntity> - show some 1 24
RLDC Reporting in Visual studio 11 13
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

785 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