title: Get the item matching a URL in Sitecore
body: <p>In a site I'm building, I'm trying to use the referer to verify AJAX requests are coming from the correct URLs.</p>
  
  <p>To do this I'd like to get Sitecore to resolve a URL to an Item. For example,</p>
  
  <p><code>http://www.mysite.com/abc/def</code></p>
  
  <p>might resolve to the item at the path</p>
  
  <p><code>sitecore/Content/MySite/Home/abc/def</code></p>
  
  <p>What's the recommended way to go about this in my code?</p>