How to know if two URLS lead to the same page
<p>I want to write a small script to know if two URLS lead to the same page. For example: <a href="http://google.com" rel="nofollow">http://google.com</a> and <a href="http://google.com/#" rel="nofollow">http://google.com/#</a> will lead to the same URL. Also sometimes <a href="http://URL1.com" rel="nofollow">http://URL1.com</a> and <a href="http://URL2.com" rel="nofollow">http://URL2.com</a> also lead to the same page although they are not the same URL.</p>

<p>Is there an easy way to do that?</p>

<p>If you need more information please tell me and i will edit the post</p>

<p>NOTE: this is NOT a homework question so please be as helpful as you can. </p>

<p>Thank you all!</p>
