Best way to get data from "clean" and "dirty" URLs
<p>I'm writing an application that gets data from URLs, but I want to make it an option whether or not the user uses "clean" urls (ex: <a href="http://example.com/hello/world" rel="nofollow">http://example.com/hello/world</a>) or "dirty" urls (ex: <a href="http://example.com/?action=hello&amp;sub=world" rel="nofollow">http://example.com/?action=hello&amp;sub=world</a>).</p>

<p>What would be the best way to get variables form both URL schemes?</p>
