I have a classifieds website. And there are 3 main pages
1) Location selector page
2) Listing page (where ads are listed)
3) And Details page, where details about ads displayed
The URLs of details page are user-friendly-URLs.
What I want is,
If user clicks on links on Google search results (URLs of details page), I want the user to redirected to Ads page
But if user type-in URL in browser then I want user to go to Location Selector page.
My question is: Is there a way I can differentiate how user hit my website (from typing URLs in browser OR clicking on Google search results)?
I am using Asp.net with C#. .Net framework 4.0.
I know I can use Request.UrlReferrer.ToString()
to retrieve URL of previous page of the same application.
But how to get previous page if previous page is search result of Google or Bing or some other search engine. And how to find out if there is no Previous page, i.e. if user typed URL in browser?
I want solution that works in all browsers